Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no norm option to scil_bundle_fixel_analysis #1032

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

karanphil
Copy link
Contributor

@karanphil karanphil commented Sep 30, 2024

Quick description

This is a small PR to add the option of not normalizing the density maps. For instance, if you want to keep the information about the streamline count or the sift2 weight, you can now use --norm none. You can also use multiple choices like --norm voxel none and it will produce outputs for both.

The for loop on the norm options makes it look like all the code has changed in the script, but it is basically the same as before inside the loop, with shorter variable names to respect pep8.

Type of change

Enhancement

Check the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Provide data, screenshots, command line to test (if relevant)

...

Checklist

  • My code follows the style guidelines of this project (run autopep8)
  • I added relevant citations to scripts, modules and functions docstrings and descriptions
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I moved all functions from the script file (except the argparser and main) to scilpy modules
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@pep8speaks
Copy link

pep8speaks commented Sep 30, 2024

Hello @karanphil, Thank you for updating !

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-09-30 15:38:45 UTC

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 4 lines in your changes missing coverage. Please review.

Project coverage is 68.77%. Comparing base (1d6f848) to head (b4958df).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1032      +/-   ##
==========================================
- Coverage   68.78%   68.77%   -0.01%     
==========================================
  Files         429      429              
  Lines       22265    22276      +11     
  Branches     3324     3326       +2     
==========================================
+ Hits        15314    15320       +6     
- Misses       5665     5670       +5     
  Partials     1286     1286              
Components Coverage Δ
Scripts 69.67% <92.15%> (+0.02%) ⬆️
Library 67.49% <100.00%> (-0.05%) ⬇️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants