Skip to content

Commit

Permalink
Merge pull request #56 from cta-observatory/fix_mono_data
Browse files Browse the repository at this point in the history
fixed reading of mono data
  • Loading branch information
jsitarek authored Dec 7, 2022
2 parents 8358cb8 + 0f83b1d commit 77ca709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctapipe_io_magic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1410,9 +1410,9 @@ def _load_data(self):
data_trigger_pattern = DATA_STEREO_TRIGGER_PATTERN
if not self.is_stereo:
if self.use_sumt_events:
mc_trigger_pattern = DATA_MONO_SUMT_TRIGGER_PATTERN
data_trigger_pattern = DATA_MONO_SUMT_TRIGGER_PATTERN
else:
mc_trigger_pattern = DATA_MONO_TRIGGER_PATTERN
data_trigger_pattern = DATA_MONO_TRIGGER_PATTERN
events_cut['cosmic_events'] = f'(MTriggerPattern.fPrescaled == {data_trigger_pattern})'
# Only for cosmic events because MC data do not have pedestal events:
events_cut['pedestal_events'] = f'(MTriggerPattern.fPrescaled == {PEDESTAL_TRIGGER_PATTERN})'
Expand Down

0 comments on commit 77ca709

Please sign in to comment.