From 2f154481f0e9db1927051f96a52a3c32ec83092d Mon Sep 17 00:00:00 2001 From: Dacheng Xu Date: Sun, 11 Feb 2024 11:56:29 +0800 Subject: [PATCH 1/2] Loosen `save_when` of `Events` (#1327) --- straxen/plugins/events/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/straxen/plugins/events/events.py b/straxen/plugins/events/events.py index 5599d757f..3696ea31c 100644 --- a/straxen/plugins/events/events.py +++ b/straxen/plugins/events/events.py @@ -29,7 +29,7 @@ class Events(strax.OverlapWindowPlugin): provides = "events" data_kind = "events" - save_when = strax.SaveWhen.NEVER + save_when = strax.SaveWhen.EXPLICIT dtype = [ ("event_number", np.int64, "Event number in this dataset"), From b18e8f32fc0b3049bdffd24fa36ea78e12593ff5 Mon Sep 17 00:00:00 2001 From: Dacheng Xu Date: Mon, 12 Feb 2024 01:57:45 +0800 Subject: [PATCH 2/2] Deprecate the usage of `XENONnT/ax_env` (#1329) --- extra_requirements/requirements-tests.txt | 2 +- straxen/contexts.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extra_requirements/requirements-tests.txt b/extra_requirements/requirements-tests.txt index ffab70ea0..1f1cdfc7d 100644 --- a/extra_requirements/requirements-tests.txt +++ b/extra_requirements/requirements-tests.txt @@ -1,6 +1,6 @@ # File for the requirements of straxen with the automated tests git+https://github.com/AxFoundation/strax -git+https://github.com/XENONnT/ax_env +git+https://github.com/XENONnT/base_environment nbmake pytest-xdist xedocs==0.2.25 diff --git a/straxen/contexts.py b/straxen/contexts.py index 3bf174ee6..a8bca2833 100644 --- a/straxen/contexts.py +++ b/straxen/contexts.py @@ -160,8 +160,7 @@ def find_rucio_local_path(include_rucio_local, _rucio_local_path): __rucio_local_path = "/project/lgrandi/rucio/" print( "You specified _auto_append_rucio_local=True and you are not on dali compute nodes, " - "so we will add the following rucio local path: ", - __rucio_local_path, + f"so we will add the following rucio local path: {__rucio_local_path}" ) return _include_rucio_local, __rucio_local_path