Skip to content

Commit 4280633

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 34edca0 commit 4280633

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fmriprep/workflows/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ def init_single_subject_wf(
412412

413413
if config.workflow.fs_legacy_id:
414414
config.loggers.workflow.info(f'Using legacy FreeSurfer subject ID: sub-{subject_id}')
415-
if config.workflow.subject_anatomical_reference == 'sessionwise' and session_id is not None:
415+
if (
416+
config.workflow.subject_anatomical_reference == 'sessionwise'
417+
and session_id is not None
418+
):
416419
msg = 'Session-wise anatomical reference is incompatible with legacy FreeSurfer subject IDs.'
417420
config.loggers.workflow.error(msg)
418421
raise RuntimeError(msg)

0 commit comments

Comments
 (0)