Skip to content

Commit

Permalink
bugfix: fixes potential nonmatching b0mask with bvalues above 0. (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
rutgerfick authored Jan 8, 2021
1 parent dcb0916 commit 21c3efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmipy/signal_models/cylinder_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def spherical_mean(self, acquisition_scheme, **kwargs):
bvals_ = bvals[bval_indices_above0]
E_mean_ = ((np.sqrt(np.pi) * erf(np.sqrt(bvals_ * lambda_par))) /
(2 * np.sqrt(bvals_ * lambda_par)))
E_mean[~acquisition_scheme.shell_b0_mask] = E_mean_
E_mean[bval_indices_above0] = E_mean_
return E_mean


Expand Down

0 comments on commit 21c3efc

Please sign in to comment.