@@ -28,11 +28,10 @@ def run(self):
28
28
preproc_path ,
29
29
str (out_dir ),
30
30
'dataset' ,
31
- '--model={}' . format ( model_path ) ,
31
+ f '--model={ model_path } ' ,
32
32
'--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'
36
35
]
37
36
38
37
neurovault = self .options .pop ('--neurovault' , 'enable' )
@@ -46,12 +45,12 @@ def run(self):
46
45
for name , value in self .options .items ():
47
46
if name .startswith ('--' ):
48
47
if value is True :
49
- fitlins_args .append ('{}' . format ( name ) )
48
+ fitlins_args .append (f' { name } ' )
50
49
elif value is not None and value is not False :
51
- fitlins_args .append ('{ }={}' . format ( name , value ) )
50
+ fitlins_args .append (f' { name } ={ value } ' )
52
51
else :
53
52
if value is not False and value is not None :
54
- fitlins_args .append ('{ } {}' . format ( name , value ) )
53
+ fitlins_args .append (f' { name } { value } ' )
55
54
56
55
# Call fitlins as if CLI
57
56
retcode = run_fitlins (fitlins_args )
0 commit comments