scilus / scilpy

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

Cleaning scil_gradients_validate_correct handling of peaks #928

Closed karanphil closed 4 months ago

karanphil commented 4 months ago

Quick description

Small PR to remove the need for a --peak_vals argument in scil_gradients_validate_correct.py when giving multiple peaks per voxel. Since the peaks we use (from scil_fodf_metrics.py) are already ordered, we don't need the values to find the maximum amplitude. Also, it would work with evecs.nii.gz from scil_dti_metrics.py, but the format is different and we always have access to evecs_v1.nii.gz anyway, so I did not add support for it.

We will also need to add a test for multiple peaks, once we have cleaner test data.

...

Type of change

Check the relevant options.

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

...

Checklist

pep8speaks commented 4 months ago

Hello @karanphil, Thank you for updating !

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

Comment last updated at 2024-03-05 16:01:35 UTC
codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 69.40%. Comparing base (4c2848c) to head (fce54f8). Report is 48 commits behind head on master.

:exclamation: Current head fce54f8 differs from pull request most recent head eeeb65e. Consider uploading reports for the commit eeeb65e to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #928 +/- ## ========================================== + Coverage 69.17% 69.40% +0.22% ========================================== Files 389 389 Lines 20963 20993 +30 Branches 3233 3230 -3 ========================================== + Hits 14501 14570 +69 + Misses 5132 5109 -23 + Partials 1330 1314 -16 ``` | [Components](https://app.codecov.io/gh/scilus/scilpy/pull/928/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/928/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `71.84% <100.00%> (+0.24%)` | :arrow_up: | | [Library](https://app.codecov.io/gh/scilus/scilpy/pull/928/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `65.25% <ø> (+0.20%)` | :arrow_up: |