@@ -28,11 +28,10 @@ def run(self):
2828 preproc_path ,
2929 str (out_dir ),
3030 'dataset' ,
31- '--model={}' . format ( model_path ) ,
31+ f '--model={ model_path } ' ,
3232 '--ignore=/(.*desc-confounds_regressors.tsv)/' ,
33- '--derivatives={} {}' .format (
34- bundle_path , preproc_path ),
35- '--smoothing={}:Dataset' .format (smoothing )
33+ f'--derivatives={ bundle_path } ' ,
34+ f'--smoothing={ smoothing } :Dataset'
3635 ]
3736
3837 neurovault = self .options .pop ('--neurovault' , 'enable' )
@@ -46,12 +45,12 @@ def run(self):
4645 for name , value in self .options .items ():
4746 if name .startswith ('--' ):
4847 if value is True :
49- fitlins_args .append ('{}' . format ( name ) )
48+ fitlins_args .append (f' { name } ' )
5049 elif value is not None and value is not False :
51- fitlins_args .append ('{ }={}' . format ( name , value ) )
50+ fitlins_args .append (f' { name } ={ value } ' )
5251 else :
5352 if value is not False and value is not None :
54- fitlins_args .append ('{ } {}' . format ( name , value ) )
53+ fitlins_args .append (f' { name } { value } ' )
5554
5655 # Call fitlins as if CLI
5756 retcode = run_fitlins (fitlins_args )
0 commit comments