-
Notifications
You must be signed in to change notification settings - Fork 17
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
Problems reprocessing 2021-02-13, since "case of broken pixels not contained in waveform is not implemented" #206
Comments
Hi @marialainez, I transferred the issue from lstchain to I will have a look at the files, this error shouldn't happen (there should be no data that is like this), so I need to investigate why this error was triggered for the files you are analyzing. |
Just FYI, there was a de-activated single module on that night, but it is the same case for other nights in February 2021... |
Yes, thanks, I was aware of that and we have tests checking that this data is readable, at least the original files. I think here, we read gain selected or dvred files, I didn't check yet. But I think we have an issue here with when we apply the offline DVR to this data. I need to check if it is a problem of the dvr or of the reader. |
Yes, for this reprocessing we are reading the files in R0V, since the other ones are not available in fefs anymore. But when we first processed this night with v0.9 from the original R0 files we didn't have any problem. |
Checking the file on disk, there is something weird in the files itself: In [1]: from protozfits import File
In [2]: f = File("/fefs/aswg/data/real/R0V/20210213/LST-1.1.Run03631.0030.fits.fz")
In [3]: f
Out[3]: File({'CameraConfig': Table(1xR1.CameraConfiguration), 'Events': Table(13250xR1.CameraEvent)})
In [5]: c = f.CameraConfig[0]
In [6]: c.num_pixels
Out[6]: 1855
In [7]: c.lstcam.num_modules
Out[7]: 265
In [8]: e = f.Events[0]
In [9]: e.pixel_status
Out[9]: array([4, 4, 5, ..., 4, 4, 4], dtype=uint8)
In [10]: e.pixel_status.size
Out[10]: 1855
In [13]: from collections import Counter
In [14]: Counter(e.pixel_status)
Out[14]: Counter({4: 1694, 5: 154, 1: 7})
In [21]: e.waveform.size / c.num_samples
Out[21]: 161.0 The camera configuration says 1855 pixels, 265 modules, so the full camera, which should not be the case for the data with one module switched off. It should have 1848 pixels / 264 modules. Then, looking into the pixel status, we have 1694 pixels that were HG readout but not stored by the DVR (4), 154 pixels which were HG readout and stored by the DVR (5) and 7 pixels that the DVR claims are "stored" but have nothing readout (1). This shouldn't happen. The error is with the DVR tool on the data with the broken module, not here. |
All runs of night 2021-02-13 fail when trying to reprocess them with v0.10. This is the error traceback that we get:
And here is an example of one of the commands that we launch:
The text was updated successfully, but these errors were encountered: