Skip to content

Commit

Permalink
I needed to increase precision on the time field in the variance imag…
Browse files Browse the repository at this point in the history
…e container
  • Loading branch information
Christoph Toennis committed Jun 5, 2024
1 parent 17551b0 commit d845d14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/ctapipe/image/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def __call__(self, waveforms, tel_id, trigger_time) -> DL1PedestalVarianceContai
image=variance,
VarMethod=VarianceType.SIMPLE,
is_valid=True,
time=np.float32(trigger_time),
time=trigger_time,
)


Expand Down
1 change: 0 additions & 1 deletion src/ctapipe/image/tests/test_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ def test_dtype(Extractor, subarray):
if Extractor is VarianceExtractor:
var = extractor(waveforms, tel_id, 0.0)
assert var.image.dtype == np.float32
assert var.trigger_time.dtype == np.float32
return

dl1 = extractor(waveforms, tel_id, selected_gain_channel, broken_pixels)
Expand Down

0 comments on commit d845d14

Please sign in to comment.