Skip to content

Commit

Permalink
Fix style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Mar 29, 2024
1 parent 042a67b commit 304531a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fmriprep/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion fmriprep/cli/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions fmriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 304531a

Please sign in to comment.