Skip to content

Commit

Permalink
Merge pull request #2680 from cta-observatory/hdf5_true_image_sum
Browse files Browse the repository at this point in the history
Fill `containers.SimulatedCameraContainer.true_image_sum` in HDF5eventsource
  • Loading branch information
maxnoe authored Jan 21, 2025
2 parents 708dbfc + bed2598 commit 1644e85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
ctapipe v0.23.2 (2025-01-21)
============================

Bug Fixes
---------

- Fill ``ctapipe.containers.SimulatedCameraContainer.true_image_sum`` in
``HDF5EventSource``. Always returned default value of -1 before the fix. [`#2680 <https://github.com/cta-observatory/ctapipe/pull/2680>`__]

Maintenance
-----------

Expand Down
1 change: 1 addition & 0 deletions src/ctapipe/io/hdf5eventsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def _generator(self):
if self.has_simulated_dl1:
simulated_image_row = next(simulated_image_iterators[key])
simulated.true_image = simulated_image_row["true_image"]
simulated.true_image_sum = simulated_image_row["true_image_sum"]

if DataLevel.DL1_PARAMETERS in self.datalevels:
# Is there a smarter way to unpack this?
Expand Down

0 comments on commit 1644e85

Please sign in to comment.