Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 780a17d commit 1dfd74c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions notebooks/tutorials/Open_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions straxen/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions straxen/legacy/plugins_1t/peak_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
],
Expand Down
7 changes: 5 additions & 2 deletions straxen/mini_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down

0 comments on commit 1dfd74c

Please sign in to comment.