From 304531a77965d362ef7579d90761f35a2c4ccab0 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 29 Mar 2024 10:48:04 -0400 Subject: [PATCH] Fix style issues. --- fmriprep/cli/parser.py | 4 ++-- fmriprep/cli/workflow.py | 1 - fmriprep/workflows/base.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fmriprep/cli/parser.py b/fmriprep/cli/parser.py index d1681e1b9..a7e582be8 100644 --- a/fmriprep/cli/parser.py +++ b/fmriprep/cli/parser.py @@ -98,7 +98,7 @@ def _drop_sub(value): return value[4:] if value.startswith('sub-') else value def _drop_ses(value): - return value[4:] if value.startswith("ses-") else value + return value[4:] if value.startswith('ses-') else value def _process_value(value): import bids @@ -934,7 +934,7 @@ def parse_args(args=None, namespace=None): def compute_subworkflows( *, - layout: 'BIDSLayout', + layout: BIDSLayout, participant_ids: list, session_ids: list | None = None, ) -> list: diff --git a/fmriprep/cli/workflow.py b/fmriprep/cli/workflow.py index 2f6385a63..1e47b80ba 100644 --- a/fmriprep/cli/workflow.py +++ b/fmriprep/cli/workflow.py @@ -35,7 +35,6 @@ def build_workflow(config_file, retval): """Create the Nipype Workflow that supports the whole execution graph.""" - from niworkflows.utils.bids import collect_participants from niworkflows.utils.misc import check_valid_fs_license from fmriprep.reports.core import generate_reports diff --git a/fmriprep/workflows/base.py b/fmriprep/workflows/base.py index 900234601..2bb2140c2 100644 --- a/fmriprep/workflows/base.py +++ b/fmriprep/workflows/base.py @@ -186,9 +186,9 @@ def init_single_subject_wf( from fmriprep.workflows.bold.base import init_bold_wf name = ( - f"sub_{subject_id}_ses_{session_id}_wf" + f'sub_{subject_id}_ses_{session_id}_wf' if session_id - else f"sub_{subject_id}_wf" + else f'sub_{subject_id}_wf' ) workflow = Workflow(name=name)