scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
62 stars 60 forks source link

Add no norm option to scil_bundle_fixel_analysis #1032

Closed karanphil closed 4 weeks ago

karanphil commented 2 months ago

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.

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

...

Checklist

pep8speaks commented 2 months ago

Hello @karanphil, Thank you for updating !

Line 79:1: W293 blank line contains whitespace

Comment last updated at 2024-11-08 19:31:24 UTC
codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.94%. Comparing base (4bde487) to head (754cc96). Report is 19 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1032 +/- ## ========================================== + Coverage 68.88% 68.94% +0.05% ========================================== Files 434 434 Lines 22643 22657 +14 Branches 3077 3080 +3 ========================================== + Hits 15598 15621 +23 + Misses 5728 5724 -4 + Partials 1317 1312 -5 ``` | [Components](https://app.codecov.io/gh/scilus/scilpy/pull/1032/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | Coverage Δ | | |---|---|---| | [Scripts](https://app.codecov.io/gh/scilus/scilpy/pull/1032/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `69.68% <100.00%> (+0.09%)` | :arrow_up: | | [Library](https://app.codecov.io/gh/scilus/scilpy/pull/1032/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `67.91% <100.00%> (+0.01%)` | :arrow_up: |