Skip to content
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

Fix a crash in the gain selection with missing packets #64

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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))[

Check warning on line 1182 in src/ctapipe_io_nectarcam/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_nectarcam/__init__.py#L1182

Added line #L1182 was not covered by tests
not_broken
]

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