Skip to content

Commit

Permalink
Adjust saving preference (#1451)
Browse files Browse the repository at this point in the history
* set veto_regions to ALWAYS

* remove outdated TODO

* always save event_pattern_fit

* Save `event_area_per_channel` always

---------

Co-authored-by: dachengx <dx2227@columbia.edu>
  • Loading branch information
yuema137 and dachengx authored Oct 16, 2024
1 parent 3c30076 commit c2c0400
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions straxen/plugins/events/event_area_per_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ class EventAreaPerChannel(strax.Plugin):
__version__ = "0.1.1"

compressor = "zstd"
save_when = immutabledict(
{
"event_area_per_channel": strax.SaveWhen.EXPLICIT,
"event_n_channel": strax.SaveWhen.ALWAYS,
}
)

n_top_pmts = straxen.URLConfig(default=straxen.n_top_pmts, type=int, help="Number of top PMTs")

Expand Down
1 change: 0 additions & 1 deletion straxen/plugins/events/event_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class EventInfo(strax.MergeOnlyPlugin):
"event_positions",
"corrected_areas",
"energy_estimates",
# 'event_pattern_fit', <- this will be added soon
)
save_when = strax.SaveWhen.ALWAYS
provides = "event_info"
Expand Down
2 changes: 1 addition & 1 deletion straxen/plugins/records/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PulseProcessing(strax.Plugin):
data_kind = {k: k for k in provides}
save_when = immutabledict(
records=strax.SaveWhen.TARGET,
veto_regions=strax.SaveWhen.TARGET,
veto_regions=strax.SaveWhen.ALWAYS,
pulse_counts=strax.SaveWhen.ALWAYS,
)

Expand Down

0 comments on commit c2c0400

Please sign in to comment.