Skip to content

Commit

Permalink
Merge pull request #94 from neuroscout/fitlins_06
Browse files Browse the repository at this point in the history
MNT: Bump fitlins to 0.6.1
  • Loading branch information
adelavega committed Dec 12, 2019
2 parents d701ea8 + 6cd649d commit 4f77132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM poldracklab/fitlins:0.5.1
FROM poldracklab/fitlins:0.6.1

# Set user back to root
USER root
Expand Down
13 changes: 6 additions & 7 deletions neuroscout_cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ def run(self):
preproc_path,
str(out_dir),
'dataset',
'--model={}'.format(model_path),
f'--model={model_path}',
'--ignore=/(.*desc-confounds_regressors.tsv)/',
'--derivatives={} {}'.format(
bundle_path, preproc_path),
'--smoothing={}:Dataset'.format(smoothing)
f'--derivatives={bundle_path}',
f'--smoothing={smoothing}:Dataset'
]

neurovault = self.options.pop('--neurovault', 'enable')
Expand All @@ -46,12 +45,12 @@ def run(self):
for name, value in self.options.items():
if name.startswith('--'):
if value is True:
fitlins_args.append('{}'.format(name))
fitlins_args.append(f'{name}')
elif value is not None and value is not False:
fitlins_args.append('{}={}'.format(name, value))
fitlins_args.append(f'{name}={value}')
else:
if value is not False and value is not None:
fitlins_args.append('{} {}'.format(name, value))
fitlins_args.append(f'{name} {value}')

# Call fitlins as if CLI
retcode = run_fitlins(fitlins_args)
Expand Down

0 comments on commit 4f77132

Please sign in to comment.