Skip to content

Commit 4f77132

Browse files
authored
Merge pull request #94 from neuroscout/fitlins_06
MNT: Bump fitlins to 0.6.1
2 parents d701ea8 + 6cd649d commit 4f77132

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM poldracklab/fitlins:0.5.1
1+
FROM poldracklab/fitlins:0.6.1
22

33
# Set user back to root
44
USER root

neuroscout_cli/commands/run.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)