Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to save first samples of peak(lets) waveform #867

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

HenningSE
Copy link
Collaborator

@HenningSE HenningSE commented Aug 15, 2024

What is the problem / what does the code in this PR do

This PR adds the option to save the first n (default to 200) samples of the merged peak(lets) waveform without downsampling. In case of very wide S1s or S1s with a lot of afterpulses strax will downsample the peak waveforms to fit into the 200 sample summed waveform that we save with peaklets and peaks. This process removes important information of the S1 waveform. With this PR the first n samples of the waveforms are saved for peaklets that 1. get downsampled and 2. have a downsampling factor smaller 7. This should cover basically all S1s without introducing a large file size overhead.

@coveralls
Copy link

coveralls commented Aug 15, 2024

Coverage Status

coverage: 90.292% (-0.04%) from 90.331%
when pulling 518581d on add_waveform_start
into ef2861e on master.

@HenningSE HenningSE marked this pull request as ready for review August 15, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants