From 6baf725b693dfe891dfede382493790374882c5b Mon Sep 17 00:00:00 2001 From: Alexandre D'Astous Date: Thu, 12 Nov 2020 13:46:56 -0500 Subject: [PATCH] Updated comments --- shimmingtoolbox/unwrap/prelude.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shimmingtoolbox/unwrap/prelude.py b/shimmingtoolbox/unwrap/prelude.py index 609bc3b4..7b5bfc49 100644 --- a/shimmingtoolbox/unwrap/prelude.py +++ b/shimmingtoolbox/unwrap/prelude.py @@ -81,8 +81,9 @@ def prelude(wrapped_phase, mag, affine, mask=None, threshold=None, is_unwrapping fname_phase_unwrapped = glob.glob(os.path.join(path_tmp, 'rawPhase_unwrapped*'))[0] - # When loading fname_phase_unwrapped, if a singleton is on the last dimension, it will not appear in the last - # dimension in phase_unwrapped. To be consistent with the size of the input, the singleton are added back. + # When loading fname_phase_unwrapped, if a singleton is on the last dimension in wrapped_phase, it will not appear + # in the last dimension in phase_unwrapped. To be consistent with the size of the input, the singletons are added + # back. phase_unwrapped = nib.load(fname_phase_unwrapped).get_fdata() for _ in range(wrapped_phase.ndim - phase_unwrapped.ndim): phase_unwrapped = np.expand_dims(phase_unwrapped, -1)