Skip to content

Commit

Permalink
Run ruff.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 19, 2024
1 parent 722558d commit 955d1da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions xcp_d/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ def init_single_subject_wf(subject_id: str):
# Reduce exact_times to only include values greater than the post-scrubbing duration.
exact_scans = []
if any(
isinstance(length, int | float) for length in
config.workflow.correlation_lengths
isinstance(length, int | float) for length in config.workflow.correlation_lengths
):
exact_scans = calculate_exact_scans(
exact_times=config.workflow.correlation_lengths,
Expand Down
5 changes: 1 addition & 4 deletions xcp_d/workflows/bold/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,7 @@ def init_prepare_confounds_wf(
]),
]) # fmt:skip

if any(
isinstance(length, int | float) for length in
config.workflow.correlation_lengths
):
if any(isinstance(length, int | float) for length in config.workflow.correlation_lengths):
random_censor = pe.Node(
RandomCensor(exact_scans=exact_scans, random_seed=config.seeds.master),
name='random_censor',
Expand Down

0 comments on commit 955d1da

Please sign in to comment.