Skip to content

Commit

Permalink
Merge pull request #244 from chrisfilo/fix/manual_wf_select
Browse files Browse the repository at this point in the history
Fixes -t flag
  • Loading branch information
chrisgorgo committed Dec 7, 2016
2 parents 1812954 + b05f2f1 commit f89e632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def base_workflow_generator(subject_id, task_id, settings):
if subject_data['t1w'] == []:
raise Exception("No T1w images found for participant %s. All workflows require T1w images."%subject_id)

if subject_data['sbref'] != [] or settings['workflow_type'] == "ds054":
if (subject_data['sbref'] != [] and settings['workflow_type'] == "auto") or settings['workflow_type'] == "ds054":
return wf_ds054_type(subject_data, settings, name=subject_id)
elif subject_data['sbref'] == [] or settings['workflow_type'] == "ds005":
elif (subject_data['sbref'] == [] and settings['workflow_type'] == "auto") or settings['workflow_type'] == "ds005":
return wf_ds005_type(subject_data, settings, name=subject_id)
else:
raise Exception("Could not figure out what kind of workflow to run for this dataset.")
Expand Down

0 comments on commit f89e632

Please sign in to comment.