-
Notifications
You must be signed in to change notification settings - Fork 62
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
Clarify b0 threshold #867
Clarify b0 threshold #867
Conversation
See associated Issue #866 |
ff1b681
to
9621d8e
Compare
Hello @EmmaRenauld, Thank you for updating ! There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-02-29 18:49:17 UTC |
Build Failed 💥 |
Build Failed 💥 |
Build passed ! Good Job 🍻 ! |
2 similar comments
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
24cecb0
to
c695dbd
Compare
Build Failed 💥 |
c695dbd
to
c7e44f4
Compare
Build Failed 💥 |
e6e9190
to
5521fa0
Compare
Should be ready for second review, @arnaudbore , @karanphil Adding here reference to dipy issue: dipy/dipy#3015 |
Build passed ! Good Job 🍻 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! I've got a few comments, but after they are adressed I think we are gtg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of things but we are getting there !
Build passed ! Good Job 🍻 ! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #867 +/- ##
==========================================
+ Coverage 69.17% 69.27% +0.09%
==========================================
Files 389 389
Lines 20963 20980 +17
Branches 3233 3239 +6
==========================================
+ Hits 14501 14533 +32
+ Misses 5132 5122 -10
+ Partials 1330 1325 -5
|
264f83d
to
fc08fa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Did not test every script. Tested one and read all the --help.
Massive PR. Nice job!
…ta was loaded twice. Fixed
…Adding b0_treshold arg.
…ow. Only using tolerance.
a5c5e0f
to
3ce0db0
Compare
Quick description
[ENH] The argument --force_b0_threshold, used a bit everywhere, was quite unclear. Does it force to use the b0_threshold given, or does it force to work in any case? Answer was: it forced to use the minimal b-value even if it was higher than expected b0_threshold. Renamed --skip_b0_validation.
[FIX] In many cases, the function
check_b0_threshold
was incorrectly used in the scripts (they were usingcheck_b0_threshold(args)
but the function expected a bool as first argument. It was thus not doing as expected.[FIX] In other cases, it was used with:
b0_thr = check_b0_threshold(force_b0_threshold, bvals.min(), bvals.min())
which was not doing anything![ENH] It was always used with the default b0_threshold. Added an argument b0_threshold that user may change if there is an error.
[FIX] Major fix in scil_sh_to_sf. With option --in_bval, The minimal b-value was always considered as a b0 and rejected from the average, even if the --in_bval contained no b0, which is actually kind of expected in this particular script.
Complex description :)
Easy scripts:
More complicated ones:
check_b0_threshold(args.force_b0_threshold, bvals.min(), bvals.min())
, it was always setting the b0_thr to the minimal b-value! But dipy's csdeconv does seem to use the gtab.b0s_mask. Added the b0_threshold option.Impossible ones for now:
Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
...
Checklist