We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 578930e commit 7d06aa6Copy full SHA for 7d06aa6
CPAC/distortion_correction/utils.py
@@ -183,7 +183,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
183
if isinstance(unwarp_dir, bytes):
184
unwarp_dir = unwarp_dir.decode()
185
186
- if unwarp_dir in ["x", "x-", "-x","i","-i","i-"]:
+ if unwarp_dir in ["x", "x-", "-x", "i", "-i", "i-"]:
187
if dwell_time_one and dwell_time_two:
188
dim = nibabel.load(phase_one).shape[0]
189
n_PE_steps = dim - 1
@@ -194,7 +194,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
194
else:
195
raise Exception("[!] No dwell time or total readout time "
196
"present for the acq-fMRI EPI field maps.")
197
- elif unwarp_dir in ["y", "y-", "-y","j","-j","j-"]:
+ elif unwarp_dir in ["y", "y-", "-y", "j", "-j", "j-"]:
198
199
dim = nibabel.load(phase_one).shape[1]
200
0 commit comments