From b6fe261f3178e2393b8f02b0c089ba87b381d682 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 5 Dec 2023 14:27:05 +0100 Subject: [PATCH] Perform broken pixels check only in case of non-dvred pixels --- src/ctapipe_io_lst/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctapipe_io_lst/__init__.py b/src/ctapipe_io_lst/__init__.py index b77dc64a..aef16d47 100644 --- a/src/ctapipe_io_lst/__init__.py +++ b/src/ctapipe_io_lst/__init__.py @@ -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"