-
Notifications
You must be signed in to change notification settings - Fork 276
Waveform noise adder #2847
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
base: main
Are you sure you want to change the base?
Waveform noise adder #2847
Conversation
|
The failures in the tests seems to be unrelated to this. Any idea of what is going on? |
|
The connection timeout is unrelated and should go away be re-running, but this error is in code you added: |
Thanks, I had not noticed, because test ran well locally. Anyway it is not something that should be configured, it is something internally, so I just made a normal dict() |
…ssible use of real data as source of NSB waveforms.
Co-authored-by: Karl Kosack <kosack@users.noreply.github.com>
…tion using numba. Now this is the default option, but one can choose to shuffle "full cameras" of noise (like before), which is about 5 times faster. Implemented other reviewers' suggestions
|
This looks good in general. However, at the moment, it's not usable via I think there are two options:
I think this does not really belong into the Similar to how the ctapipe/src/ctapipe/image/image_processor.py Lines 217 to 219 in 04a1ec7
|
|
This leaves the question when and how to initialize it. Simplest would be adding a new boolean option at the processor level to enable it The other option would be to always enable it, but make the default behavior a no-op. I think I prefer the first option as it is more explicit. |
|




First version of the component to add noise in MC waveforms, for adapting it to different observation conditions.
It adds at random N instances of waveforms from an NSB-only file to the waveforms of a showers file.
It seems to reproduce well the noise distributions produced directly by sim_telarray:Update: there was a mistake in the plots below (only one telescope was used, multiple times). After correcting this, it turns out that the noise padding produces slightly larger noise than what is produced by sim_telarray itself:
Test function still not ready,I open the draft PR to start discussion.