Skip to content

Commit

Permalink
👔 No nuisance if no regressors
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Jul 18, 2024
1 parent 763af4e commit efc0518
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CPAC/nuisance/nuisance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit efc0518

Please sign in to comment.