From 92a9f987060a6d7b0385b2fa4361fadd77d153bc Mon Sep 17 00:00:00 2001 From: Lanqing Yuan Date: Wed, 19 Jun 2024 15:04:45 -0500 Subject: [PATCH] Dont auto register cuts (#143) * no more auto_register * no cuts_basic to compute by dfefault --- jobs/job.py | 2 +- saltax/contexts.py | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/jobs/job.py b/jobs/job.py index 418414c..88e74aa 100644 --- a/jobs/job.py +++ b/jobs/job.py @@ -28,7 +28,7 @@ "event_ambience", "event_n_channel", "veto_intervals", - "cuts_basic", +# "cuts_basic", ] TO_PROCESS_DTYPES_SE = [ "peaklets", diff --git a/saltax/contexts.py b/saltax/contexts.py index f9f9a92..092153f 100644 --- a/saltax/contexts.py +++ b/saltax/contexts.py @@ -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={ @@ -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 @@ -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) @@ -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", @@ -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 @@ -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) @@ -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={ @@ -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 @@ -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, @@ -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", @@ -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 @@ -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,