From 625431c78bd331a3aeac1232efebf6e887a52218 Mon Sep 17 00:00:00 2001 From: Joran Angevaare Date: Thu, 16 Sep 2021 11:45:47 +0200 Subject: [PATCH 1/2] Fix minianalyses from apply_selection --- straxen/mini_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/straxen/mini_analysis.py b/straxen/mini_analysis.py index 21a5e4ddb..bfcdd2408 100644 --- a/straxen/mini_analysis.py +++ b/straxen/mini_analysis.py @@ -94,7 +94,7 @@ def wrapped_f(context: strax.Context, run_id: str, **kwargs): for dkind, dtypes in deps_by_kind.items(): if dkind in kwargs: # Already have data, just apply cuts - kwargs[dkind] = context.apply_selection( + kwargs[dkind] = apply_selection( kwargs[dkind], selection_str=kwargs['selection_str'], time_range=kwargs['time_range'], From f9c8448debe5c6b8cded2f7eb126d0da13c31ab2 Mon Sep 17 00:00:00 2001 From: Joran Angevaare Date: Thu, 16 Sep 2021 11:49:45 +0200 Subject: [PATCH 2/2] Update mini_analysis.py --- straxen/mini_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/straxen/mini_analysis.py b/straxen/mini_analysis.py index bfcdd2408..4ac9ee616 100644 --- a/straxen/mini_analysis.py +++ b/straxen/mini_analysis.py @@ -94,7 +94,7 @@ def wrapped_f(context: strax.Context, run_id: str, **kwargs): for dkind, dtypes in deps_by_kind.items(): if dkind in kwargs: # Already have data, just apply cuts - kwargs[dkind] = apply_selection( + kwargs[dkind] = strax.apply_selection( kwargs[dkind], selection_str=kwargs['selection_str'], time_range=kwargs['time_range'],