Skip to content

Commit

Permalink
Fix dummy data creation for ctapipe 0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jul 19, 2024
1 parent e693145 commit 6e544a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ctapipe_io_lst/tests/test_cta_r1.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def create_shower(rng):

def create_waveform(image, peak_time, num_samples=40, gains=(86, 5), offset=400):
r1 = waveform_model.get_waveform(image, peak_time, num_samples)
if CTAPIPE_0_21:
r1 = r1[0]

Check warning on line 95 in src/ctapipe_io_lst/tests/test_cta_r1.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/tests/test_cta_r1.py#L95

Added line #L95 was not covered by tests
return np.array([r1 * gain + offset for gain in gains]).astype(np.uint16)


Expand Down

0 comments on commit 6e544a9

Please sign in to comment.