From 48e6e499bb85d80573d0315b63b8c8584badfac3 Mon Sep 17 00:00:00 2001 From: karp2601 Date: Mon, 16 Dec 2024 15:09:54 -0500 Subject: [PATCH] Logging error instead of valueError --- scripts/scil_gradients_validate_sampling.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/scil_gradients_validate_sampling.py b/scripts/scil_gradients_validate_sampling.py index 6abc64dc5..006e8335d 100644 --- a/scripts/scil_gradients_validate_sampling.py +++ b/scripts/scil_gradients_validate_sampling.py @@ -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,