Skip to content

Commit e8f0c32

Browse files
committed
🩹 ~~el~~if
1 parent 492c823 commit e8f0c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CPAC/distortion_correction/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
189189
n_PE_steps = dim - 1
190190
ro_time_one = np.round(dwell_time_one * n_PE_steps, 6)
191191
ro_time_two = np.round(dwell_time_two * n_PE_steps, 6)
192-
elif ro_time_one and ro_time_two:
192+
if ro_time_one and ro_time_two:
193193
ro_times = [f"-1 0 0 {ro_time_one}", f"1 0 0 {ro_time_two}"]
194194
else:
195195
raise Exception("[!] No dwell time or total readout time "
@@ -200,7 +200,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
200200
n_PE_steps = dim - 1
201201
ro_time_one = np.round(dwell_time_one * n_PE_steps, 6)
202202
ro_time_two = np.round(dwell_time_two * n_PE_steps, 6)
203-
elif ro_time_one and ro_time_two:
203+
if ro_time_one and ro_time_two:
204204
ro_times = [f"0 -1 0 {ro_time_one}", f"0 1 0 {ro_time_two}"]
205205
else:
206206
raise Exception("[!] No dwell time or total readout time "

0 commit comments

Comments
 (0)