From 1dfd74c60526e10891ec013ac1556b99a75b044b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:44:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- notebooks/tutorials/Open_data.ipynb | 2 ++ straxen/contexts.py | 6 ++++-- straxen/legacy/plugins_1t/peak_positions.py | 3 +-- straxen/mini_analysis.py | 7 +++++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/notebooks/tutorials/Open_data.ipynb b/notebooks/tutorials/Open_data.ipynb index fc146458e1..cbff1e7dd7 100644 --- a/notebooks/tutorials/Open_data.ipynb +++ b/notebooks/tutorials/Open_data.ipynb @@ -149,6 +149,7 @@ "outputs": [], "source": [ "%%time\n", + "\n", "# This config change will take time\n", "st.set_context_config({\"check_available\": (\"raw_records\", \"records\", \"peaklets\", \"peak_basics\")})\n", "st.select_runs()" @@ -1005,6 +1006,7 @@ ], "source": [ "%%time\n", + "\n", "# use selection string to load a lot of data\n", "selected_peaks = st.get_array(\n", " run_id,\n", diff --git a/straxen/contexts.py b/straxen/contexts.py index 3bf174ee6e..b4e0b7a021 100644 --- a/straxen/contexts.py +++ b/straxen/contexts.py @@ -91,12 +91,14 @@ # st.register_all in 1T contexts. xnt_common_opts = common_opts.copy() xnt_common_opts.update({ - "register": list(common_opts["register"]) + [ + "register": list(common_opts["register"]) + + [ straxen.PeakletSOMClass, straxen.PeaksSOMClassification, straxen.EventSOMClassification, ], - "register_all": list(common_opts["register_all"]) + [ + "register_all": list(common_opts["register_all"]) + + [ straxen.plugins, ], "use_per_run_defaults": False, diff --git a/straxen/legacy/plugins_1t/peak_positions.py b/straxen/legacy/plugins_1t/peak_positions.py index 22e2ff5a61..fa1355e77b 100644 --- a/straxen/legacy/plugins_1t/peak_positions.py +++ b/straxen/legacy/plugins_1t/peak_positions.py @@ -20,8 +20,7 @@ (0, pax_file("XENON1T_tensorflow_nn_pos_20171217_sr0.json")), ( first_sr1_run, - straxen.aux_repo - + "3548132b55f81a43654dba5141366041e1daaf01/strax_files/" + straxen.aux_repo + "3548132b55f81a43654dba5141366041e1daaf01/strax_files/" "XENON1T_tensorflow_nn_pos_20171217_sr1_reformatted.json", ), ], diff --git a/straxen/mini_analysis.py b/straxen/mini_analysis.py index ff85392d32..06b00ce96a 100644 --- a/straxen/mini_analysis.py +++ b/straxen/mini_analysis.py @@ -9,7 +9,8 @@ export, __all__ = strax.exporter() -ma_doc = """ +ma_doc = ( + """ This is a straxen mini-analysis. The method takes run_id as its only positional argument, and additional arguments through keywords only. @@ -19,7 +20,9 @@ this data will be loaded automatically. The function takes the same selection arguments as context.get_array: -""" + select_docs +""" + + select_docs +) _hv_bokeh_initialized = False