Skip to content

Commit

Permalink
Logging error instead of valueError
Browse files Browse the repository at this point in the history
  • Loading branch information
karp2601 authored and karp2601 committed Dec 16, 2024
1 parent f2abe59 commit 48e6e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/scil_gradients_validate_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ def main():
ubvecs = np.unique(bvecs, axis=0)
nb_ubvecs = len(ubvecs)
if len(bvecs) != nb_ubvecs:
raise ValueError('{} b-vectors have the same direction as others, '
'which is suboptimal. There is most likely a problem '
'with the gradient table.'
.format(len(bvecs) - nb_ubvecs))
logging.error('{} b-vectors have the same direction as others, '
'which is suboptimal. There is most likely a problem '
'with the gradient table.'
.format(len(bvecs) - nb_ubvecs))

# Compute optimally distributed directions
opt_bvecs, _ = generate_gradient_sampling(nb_dir_per_shell,
Expand Down

0 comments on commit 48e6e49

Please sign in to comment.