legend-exp / legend-dataflow

LEGEND data flow management
Other
2 stars 9 forks source link

Added optional trim tier in order to window and presum raw waveforms #8

Closed SamuelBorden closed 1 year ago

SamuelBorden commented 1 year ago

Because data trimming is separate from build_raw (for now...), I've decided to put the code that windows and presums the waveforms in this LEGEND-specific repo. The function data_trimmer works by running a processing chain containing windower and presum processors on the raw data. A unit test for data_trimmer.py is also included in case this piece of code ever eventually makes it to pygama, or if people want to test it out. data_trimmer.py relies on a new double_windower.py processor, which lives in this pull request https://github.com/legend-exp/pygama/pull/407

Apologies to @ggmarshall if the snakemake rules for this new trim tier aren't correct... I tried my best!

SamuelBorden commented 1 year ago

Closing this as we are incorporating the data trimming code on the main pygama branch.