Skip to content

Commit

Permalink
does the order of active_if matter?
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrue committed Mar 7, 2024
1 parent a6b0f31 commit 36f0653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panpipes/panpipes/pipeline_vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def plot_metrics(mtd, log_file):
scatter_files = [sc if type(sc) is list else [sc] for sc in scatter_files if sc is not None]
scatter_files = list(set(chain(*scatter_files)))
@follows(set_up_dirs)
@active_if(PARAMS['do_plots_paired_scatters'])
@active_if(len(scatter_files) != 0)
@active_if(PARAMS['do_plots_paired_scatters'])
@transform(scatter_files,
formatter(), "logs/scatters__{basename[0]}.log")
def plot_scatters(infile, log_file):
Expand Down

0 comments on commit 36f0653

Please sign in to comment.