Skip to content

Commit

Permalink
Answer Phil: do not use 1e-6 has it is counfounding
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Feb 27, 2024
1 parent a9770bd commit 73646bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scilpy/dwi/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def compute_dwi_attenuation(dwi_weights: np.ndarray, b0: np.ndarray):
dwi_weights = np.minimum(dwi_weights, b0)

# Compute attenuation
b0[zeros_mask] = 1e-6
b0[zeros_mask] = 1e-10
dwi_attenuation = dwi_weights / b0
dwi_attenuation *= ~zeros_mask[:, :, :, None]

Expand Down

0 comments on commit 73646bd

Please sign in to comment.