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
Changing the default b0_threshold in gtab #1667
Changes from 2 commits
791a611
a5fe036
44bfd35
6c21c68
01c64bc
af9f442
693bc01
48b7399
e747cbe
98ea627
8434ff2
d48817c
33301cc
4334d7c
675d1b6
9ce0ad9
8f04ff9
76f3730
617484a
497847f
c67427b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,9 @@ def __init__(self, gtab, split_b_D=400.0, split_b_S0=200., bounds=None, | |
e_s += "The IVIM model requires signal measured at 0 bvalue" | ||
raise ValueError(e_s) | ||
|
||
if gtab.b0_threshold > 0: | ||
warnings.warn('The default b0_threshold > 0 and is now set to 50') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this warning. As I user, I would infer that this means that you have changed my b0_threshold to 50. I would propose to raise an Error (instead of the warning) with the following string: "The IVIM model requires a measurement at b==0. As of version 0.15, the default There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @arokem Thank you so much for this! I shall refactor accordingly! |
||
|
||
ReconstModel.__init__(self, gtab) | ||
self.split_b_D = split_b_D | ||
self.split_b_S0 = split_b_S0 | ||
|
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.
Any chance to get a test for this behavior in the IVIM tests?
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.
@arokem I will create a new issue and create a new PR with the tests for the same!