We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bfba0f + f6b21d9 commit 3344a5bCopy full SHA for 3344a5b
lstchain/scripts/lstchain_r0g_to_r0v.py
@@ -148,14 +148,15 @@ def main():
148
wf = wf.reshape((num_gains, num_pixels, num_samples))
149
150
evtype = event_type[event.event_id]
151
-
+ pixel_status = protozfits.any_array_to_numpy(event.pixel_status)
152
ordered_pix_mask = np.array(num_pixels*[True])
153
+
154
if evtype in EVENT_TYPES_TO_REDUCE:
155
pixmask = pixel_mask[event.event_id]
156
ordered_pix_mask = pixmask[pixel_id_map]
157
new_wf = wf[:, ordered_pix_mask, :]
158
event.waveform.data = new_wf.tobytes()
- pixel_status = protozfits.any_array_to_numpy(event.pixel_status)
159
160
# Modify pixel status as needed
161
new_status = np.where(ordered_pix_mask,
162
pixel_status | PixelStatus.DVR_STATUS_0,
0 commit comments