diff --git a/xcp_d/workflows/base.py b/xcp_d/workflows/base.py index 8a05c3ffc..7956b5651 100644 --- a/xcp_d/workflows/base.py +++ b/xcp_d/workflows/base.py @@ -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, diff --git a/xcp_d/workflows/bold/postprocessing.py b/xcp_d/workflows/bold/postprocessing.py index 022ea04c3..425f140e6 100644 --- a/xcp_d/workflows/bold/postprocessing.py +++ b/xcp_d/workflows/bold/postprocessing.py @@ -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',