-
Notifications
You must be signed in to change notification settings - Fork 7
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
Clip negative values in extrapolation interfaces #213
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
==========================================
- Coverage 48.75% 48.74% -0.02%
==========================================
Files 56 56
Lines 7423 7425 +2
Branches 1015 1015
==========================================
Hits 3619 3619
- Misses 3586 3588 +2
Partials 218 218 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thank you!!
@@ -385,6 +387,8 @@ def _extrapolate_scheme(self, scheme_name, runtime, fit_obj, mask_array, mask_im | |||
shore_array = fit_obj._shore_coef[mask_array] | |||
output_data = np.zeros(mask_array.shape + (len(prediction_gtab.bvals),)) | |||
output_data[mask_array] = np.dot(shore_array, prediction_shore.T) | |||
# Clip negative values |
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.
No need for s0=1000 here because it was fit with the original s0
Closes #212.
Changes proposed in this pull request