Skip to content

Commit

Permalink
Dont auto register cuts (#143)
Browse files Browse the repository at this point in the history
* no more auto_register

* no cuts_basic to compute by dfefault
  • Loading branch information
FaroutYLq authored Jun 19, 2024
1 parent 1f77249 commit 92a9f98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion jobs/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"event_ambience",
"event_n_channel",
"veto_intervals",
"cuts_basic",
# "cuts_basic",
]
TO_PROCESS_DTYPES_SE = [
"peaklets",
Expand Down
18 changes: 0 additions & 18 deletions saltax/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def xenonnt_salted_fuse(
saltax_mode="salt",
output_folder="./fuse_data",
cut_list=cutax.BasicCuts,
auto_register_cuts=True,
corrections_version=DEFAULT_XEDOCS_VERSION,
simu_config_version="sr1_dev",
run_id_specific_config={
Expand All @@ -163,8 +162,6 @@ def xenonnt_salted_fuse(
:param corrections_version: XENONnT documentation version to use,
defaults to DEFAULT_XEDOCS_VERSION
:param cut_list: Cut list to use, defaults to cutax.BasicCuts
:param auto_register_cuts: Whether to automatically register cuts,
defaults to True
:param simu_config_version: simulation configuration version to use,
defaults to "sr1_dev"
:param run_id_specific_config: Mapping of run_id specific config
Expand Down Expand Up @@ -231,8 +228,6 @@ def xenonnt_salted_fuse(
st.set_config(dict(saltax_mode=saltax_mode))

# Register cuts plugins
if auto_register_cuts:
st.register_cuts()
if cut_list is not None:
st.register_cut_list(cut_list)

Expand Down Expand Up @@ -272,7 +267,6 @@ def xenonnt_salted_wfsim(
output_folder="./strax_data",
corrections_version=DEFAULT_XEDOCS_VERSION,
cut_list=cutax.BasicCuts,
auto_register_cuts=True,
simu_config_version="sr0_v4",
cmt_version="global_v9",
cmt_run_id="026000",
Expand All @@ -292,8 +286,6 @@ def xenonnt_salted_wfsim(
:param corrections_version: XENONnT documentation version to use,
defaults to DEFAULT_XEDOCS_VERSION
:param cut_list: Cut list to use, defaults to cutax.BasicCuts
:param auto_register_cuts: Whether to automatically register cuts,
defaults to True
:param simu_config_version: (for simulation) fax configuration
version to use, defaults to "sr0_v4"
:param cmt_version: (for simulation) CMT version to use, defaults to
Expand Down Expand Up @@ -362,8 +354,6 @@ def xenonnt_salted_wfsim(
"g2": "bodega://g2?bodega_version=v5",
}
)
if auto_register_cuts:
st.register_cuts()
if cut_list is not None:
st.register_cut_list(cut_list)

Expand Down Expand Up @@ -422,7 +412,6 @@ def fxenonnt(
saltax_mode="salt",
output_folder="./fuse_data",
cut_list=cutax.BasicCuts,
auto_register_cuts=True,
corrections_version=DEFAULT_XEDOCS_VERSION,
simu_config_version="sr1_dev",
run_id_specific_config={
Expand Down Expand Up @@ -450,8 +439,6 @@ def fxenonnt(
with cutax latest
:param cut_list: List of cuts to register, default is
cutax.BasicCuts
:param auto_register_cuts: Whether to automatically register cuts,
defaults to True
:param simu_config_version: fax config version to use, default is
synced with cutax latest
:param run_id_specific_config: Mapping of run_id specific config
Expand Down Expand Up @@ -479,7 +466,6 @@ def fxenonnt(
saltax_mode=saltax_mode,
output_folder=output_folder,
corrections_version=corrections_version,
auto_register_cuts=auto_register_cuts,
cut_list=cut_list,
simu_config_version=simu_config_version,
run_id_specific_config=run_id_specific_config,
Expand All @@ -497,7 +483,6 @@ def sxenonnt(
output_folder="./strax_data",
corrections_version=DEFAULT_XEDOCS_VERSION,
cut_list=cutax.BasicCuts,
auto_register_cuts=True,
simu_config_version="sr0_v4",
cmt_version="global_v9",
cmt_run_id="026000",
Expand All @@ -519,8 +504,6 @@ def sxenonnt(
with cutax latest
:param cut_list: List of cuts to register, default is
cutax.BasicCuts
:param auto_register_cuts: Whether to auto register cuts, default
True
:param simu_config_version: fax config version to use, default is
synced with cutax latest
:param cmt_version: cmt version to use, default is synced with cutax
Expand Down Expand Up @@ -549,7 +532,6 @@ def sxenonnt(
output_folder=output_folder,
corrections_version=corrections_version,
cut_list=cut_list,
auto_register_cuts=auto_register_cuts,
simu_config_version=simu_config_version,
cmt_version=cmt_version,
cmt_run_id=cmt_run_id,
Expand Down

0 comments on commit 92a9f98

Please sign in to comment.