Skip to content

Commit

Permalink
Merge pull request #64 from vmarandon/FixGainSelectionCrashWithIncomp…
Browse files Browse the repository at this point in the history
…leteEvents2

Fix a crash in the gain selection with missing packets
  • Loading branch information
jlenain authored Jan 9, 2025
2 parents 0899c80 + 5a3b2ac commit a0d15d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ctapipe_io_nectarcam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,9 @@ def fill_r0r1_camera_container(self, zfits_event):
waveform = np.full(
(n_pixels, n_samples), fill, dtype=dtype
) # VIM : Replace full by empty ?
waveform[not_broken] = zfits_event.waveform.reshape((-1, n_samples))
waveform[not_broken] = zfits_event.waveform.reshape((-1, n_samples))[
not_broken
]

reordered_waveform = np.full(
(N_PIXELS, N_SAMPLES), fill, dtype=dtype
Expand Down

0 comments on commit a0d15d8

Please sign in to comment.