File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 27
27
28
28
# `python -m smriprep` typically displays the command as __main__.py
29
29
if '__main__.py' in sys .argv [0 ]:
30
- sys .argv [0 ] = '%s -m smriprep' % sys . executable
30
+ sys .argv [0 ] = f' { sys . executable } -m smriprep'
31
31
main ()
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def init_smriprep_wf(
168
168
freesurfer_home = os .getenv ('FREESURFER_HOME' ),
169
169
spaces = spaces .get_fs_spaces (),
170
170
),
171
- name = 'fsdir_run_%s' % run_uuid .replace ('-' , '_' ),
171
+ name = 'fsdir_run_{}' . format ( run_uuid .replace ('-' , '_' ) ),
172
172
run_without_submitting = True ,
173
173
)
174
174
if fs_subjects_dir is not None :
@@ -186,7 +186,7 @@ def init_smriprep_wf(
186
186
longitudinal = longitudinal ,
187
187
low_mem = low_mem ,
188
188
msm_sulc = msm_sulc ,
189
- name = 'single_subject_%s_wf' % subject_id ,
189
+ name = f 'single_subject_{ subject_id } _wf' ,
190
190
omp_nthreads = omp_nthreads ,
191
191
output_dir = output_dir ,
192
192
skull_strip_fixed_seed = skull_strip_fixed_seed ,
Original file line number Diff line number Diff line change @@ -128,10 +128,10 @@ def init_register_template_wf(
128
128
# Append template citations to description
129
129
for template in templates :
130
130
template_meta = get_metadata (template .split (':' )[0 ])
131
- template_refs = ['@%s' % template .split (':' )[0 ].lower ()]
131
+ template_refs = ['@{}' . format ( template .split (':' )[0 ].lower () )]
132
132
133
133
if template_meta .get ('RRID' , None ):
134
- template_refs += ['RRID:%s' % template_meta [' RRID' ] ]
134
+ template_refs += [f 'RRID:{ template_meta [" RRID" ] } ' ]
135
135
136
136
workflow .__desc__ += """\
137
137
*{template_name}* [{template_refs}; TemplateFlow ID: {template}]""" .format (
You can’t perform that action at this time.
0 commit comments