-
Notifications
You must be signed in to change notification settings - Fork 77
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
Zero suppression #166
Zero suppression #166
Conversation
…ean(8/4) + 3 dilates' and the - default - none volume reduction method
What it should have appeared on the description :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the implementation.
There is a couple of things to change I think. Others comments are matters of taste.
Thanks for the comments @vuillaut ! Starting to implement/change them now. |
…ean(8/4) + 3 dilates' and the - default - none volume reduction method
The code looks good to me. |
No problem. Let's wait until the PR is accepted. |
Hi, do we want to keep this opened as a PR or maybe just move to open an Issue? If you want to construct something different as that from ctapipe, then it should be ok, otherwise we may think on opening an issue to use the ctapipe module whenever it is merged. |
Hi @rlopezcoto, |
I agree. I thought the module in ctapipe would be implemented earlier. |
Shall we then move on with the validation of this PR and leave an open Issue to move to use the ctapipe module whenever it is ready? |
Sure ! Let me merge the master branch and solve the potential conflicts that will appear (the PR dates from few months...) |
Ok, this PR is ready for re-revision ! In the moment it is approved, I will open an issue to note that the method is a temporal version and that we should use the ctapipe version when available. Please note that for the moment the computed mask that is applied for the zero suppression is compute at the dl1 level (from the integrated image) and applied to dl0 and dl1 levels. So the 'first' dl0 data computed is overwritten. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a unit test please?
from ctapipe.io import event_source
from ctapipe.utils import get_dataset_path
from ctapipe.calib import CameraCalibrator
source = event_source(get_dataset_path('gamma_test.simtel.gz'))
from lstchain.io import get_standard_config
ev = next(iter(source))
tel_id = list(ev.r0.tels_with_data)[0]
cal = CameraCalibrator()
cal(ev)
config = get_standard_config()
config['volume_reducer'] = ...
apply_volume_reduction(...)
you get the idea.
At least to check that the algorithms work.
… of the volume reduction algorithm in a same step
No description provided.