Skip to content

Commit 1644e85

Browse files
authored
Merge pull request #2680 from cta-observatory/hdf5_true_image_sum
Fill `containers.SimulatedCameraContainer.true_image_sum` in HDF5eventsource
2 parents 708dbfc + bed2598 commit 1644e85

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: CHANGES.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
ctapipe v0.23.2 (2025-01-21)
22
============================
33

4+
Bug Fixes
5+
---------
6+
7+
- Fill ``ctapipe.containers.SimulatedCameraContainer.true_image_sum`` in
8+
``HDF5EventSource``. Always returned default value of -1 before the fix. [`#2680 <https://github.com/cta-observatory/ctapipe/pull/2680>`__]
9+
410
Maintenance
511
-----------
612

Diff for: src/ctapipe/io/hdf5eventsource.py

+1
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ def _generator(self):
708708
if self.has_simulated_dl1:
709709
simulated_image_row = next(simulated_image_iterators[key])
710710
simulated.true_image = simulated_image_row["true_image"]
711+
simulated.true_image_sum = simulated_image_row["true_image_sum"]
711712

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

0 commit comments

Comments
 (0)