Skip to content

Commit 1190804

Browse files
committed
🚨 Minor linting
1 parent e8f0c32 commit 1190804

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CPAC/distortion_correction/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
183183
if isinstance(unwarp_dir, bytes):
184184
unwarp_dir = unwarp_dir.decode()
185185

186-
if unwarp_dir in ["x", "x-", "-x","i","-i","i-"]:
186+
if unwarp_dir in ["x", "x-", "-x", "i", "-i", "i-"]:
187187
if dwell_time_one and dwell_time_two:
188188
dim = nibabel.load(phase_one).shape[0]
189189
n_PE_steps = dim - 1
@@ -194,7 +194,7 @@ def phase_encode(unwarp_dir, phase_one, phase_two, dwell_time_one=None,
194194
else:
195195
raise Exception("[!] No dwell time or total readout time "
196196
"present for the acq-fMRI EPI field maps.")
197-
elif unwarp_dir in ["y", "y-", "-y","j","-j","j-"]:
197+
elif unwarp_dir in ["y", "y-", "-y", "j", "-j", "j-"]:
198198
if dwell_time_one and dwell_time_two:
199199
dim = nibabel.load(phase_one).shape[1]
200200
n_PE_steps = dim - 1

CPAC/registration/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ def ANTs_registration_connector(wf_name, cfg, params, orig="T1w",
15731573
output_names=['checked_transform_list',
15741574
'list_length'],
15751575
function=check_transforms),
1576-
name=f'check_transforms',
1576+
name='check_transforms',
15771577
mem_gb=6)
15781578

15791579
wf.connect(collect_transforms, 'out', check_transform, 'transform_list')

0 commit comments

Comments
 (0)