diff --git a/CPAC/nuisance/nuisance.py b/CPAC/nuisance/nuisance.py index 871d18d232..94a24d14fe 100644 --- a/CPAC/nuisance/nuisance.py +++ b/CPAC/nuisance/nuisance.py @@ -2419,6 +2419,8 @@ def nuisance_regressors_generation( space: Literal["T1w", "bold"], ) -> tuple[Workflow, dict]: """Generate nuisance regressors.""" + if not opt: + return wf, {} prefixes = [f"space-{space}_"] * 2 reg_tool = None if space == "T1w": @@ -2659,6 +2661,8 @@ def nuisance_regression(wf, cfg, strat_pool: StratPool, pipe_num, opt, space, re outputs : dict """ + if not opt: + return wf, {} opt = strat_pool.regressor_dct bandpass = "Bandpass" in opt bandpass_before = (