Skip to content

Commit

Permalink
Perform broken pixels check only in case of non-dvred pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Dec 5, 2023
1 parent 17dd75b commit b6fe261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def fill_r0r1_camera_container(self, zfits_event):
# the code here works for both cases but not for the hypothetical
# case of broken pixels marked as broken (so camera config as 1855 pixels)
# and 1855 pixel_status entries but broken pixels not contained in `waveform`
if np.any(broken_pixels) and len(waveform) < n_pixels:
if not self.dvr_applied and np.any(broken_pixels) and len(waveform) < n_pixels:
raise NotImplementedError(
"Case of broken pixels not contained in waveform is not implemented."
"If you encounter this error, open an issue in ctapipe_io_lst noting"
Expand Down

0 comments on commit b6fe261

Please sign in to comment.