From 36f0653c3e378a842882ea01548c72dd34cef8f1 Mon Sep 17 00:00:00 2001 From: Kevin Rue-Albrecht Date: Thu, 7 Mar 2024 15:21:17 +0000 Subject: [PATCH] does the order of active_if matter? --- panpipes/panpipes/pipeline_vis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panpipes/panpipes/pipeline_vis.py b/panpipes/panpipes/pipeline_vis.py index f2107728..526ac7bb 100644 --- a/panpipes/panpipes/pipeline_vis.py +++ b/panpipes/panpipes/pipeline_vis.py @@ -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):