Skip to content

Commit 80a4d02

Browse files
committed
Reverse change in waveform shape
1 parent a5f362f commit 80a4d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ctapipe_io_nectarcam/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,14 +1189,14 @@ def fill_r0r1_camera_container(self, zfits_event):
11891189
# print("GAIN SELECTED")
11901190
selected_gain = np.where(has_high_gain, 0, 1)
11911191
waveform = np.full(
1192-
(N_GAINS, n_pixels, n_samples), fill, dtype=dtype
1192+
(n_pixels, n_samples), fill, dtype=dtype
11931193
) # VIM : Replace full by empty ?
11941194
waveform[not_broken] = zfits_event.waveform.reshape((-1, n_samples))[
11951195
not_broken
11961196
]
11971197

11981198
reordered_waveform = np.full(
1199-
(N_GAINS, N_PIXELS, N_SAMPLES), fill, dtype=dtype
1199+
(N_PIXELS, N_SAMPLES), fill, dtype=dtype
12001200
) # VIM : Replace full by empty ?
12011201
reordered_waveform[expected_pixels] = waveform
12021202

0 commit comments

Comments
 (0)