Skip to content

Commit 190974e

Browse files
committed
move sim info reading
1 parent 6f1e13b commit 190974e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dl1_data_handler/reader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,10 @@ def _construct_stereo_example_identifiers(self):
580580
# Read the trigger table.
581581
trigger_table = read_table(f, "/dl1/event/subarray/trigger")
582582
if self.process_type == ProcessType.Simulation:
583+
# Read simulation information for each observation
584+
simulation_info_table = read_table(f, "/configuration/simulation/run")
585+
# Append the simulation information to the list of simulation information
586+
simulation_info.append(simulation_info_table)
583587
# Construct the shower simulation table
584588
simshower_table = read_table(f, "/simulation/event/subarray/shower")
585589
# The shower simulation table is joined with the subarray trigger table.
@@ -661,10 +665,6 @@ def _multiplicity_cut_subarray(table, key_colnames):
661665
events.add_column(
662666
true_shower_primary_class, name="true_shower_primary_class"
663667
)
664-
# Read simulation information for each observation
665-
simulation_info_table = read_table(f, "/configuration/simulation/run")
666-
# Append the simulation information to the list of simulation information
667-
simulation_info.append(simulation_info_table)
668668
array_pointing = self._get_array_pointing(f)
669669
# Join the prediction table with the telescope pointing table
670670
events = join(

0 commit comments

Comments
 (0)