Skip to content

Commit 8b1f23b

Browse files
committed
factor code
1 parent 45ceeb0 commit 8b1f23b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fmriprep/workflows/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def init_single_subject_wf(subject_id):
138138
subject_data['t2w'] = []
139139

140140
anat_only = config.workflow.anat_only
141-
anat_precomp = config.execution.anat_derivatives is not None
141+
anat_derivatives = config.execution.anat_derivatives
142142
# Make sure we always go through these two checks
143143
if not anat_only and not subject_data['bold']:
144144
task_id = config.execution.task_id
@@ -148,7 +148,7 @@ def init_single_subject_wf(subject_id):
148148
subject_id, task_id if task_id else '<all>')
149149
)
150150

151-
if not anat_precomp and not subject_data['t1w']:
151+
if not anat_derivatives and not subject_data['t1w']:
152152
raise Exception("No T1w images found for participant {}. "
153153
"All workflows require T1w images.".format(subject_id))
154154

@@ -217,7 +217,6 @@ def init_single_subject_wf(subject_id):
217217
dismiss_entities=("echo",)),
218218
name='ds_report_about', run_without_submitting=True)
219219

220-
anat_derivatives = config.execution.anat_derivatives
221220
if anat_derivatives:
222221
from smriprep.utils.bids import collect_derivatives
223222
std_spaces = spaces.get_spaces(nonstandard=False, dim=(3,))

0 commit comments

Comments
 (0)