Skip to content

Commit

Permalink
event display: Fix error when there's no Mx2 file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkramer committed Oct 15, 2024
1 parent 5cc6ec9 commit 2896117
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion event_display/interactive_event_display/display_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def create_3d_figure(minerva_data, data, filename, evid):
print("Cannot process this file type")
prompthits_segs = None
event = data["charge/events", evid]
if evid in beam_triggers and sim_version == "data":
if (minerva_data is not None
and evid in beam_triggers
and sim_version == "data"):
# trigger = beam_triggers.index(evid)
minerva_times = (
minerva_data["minerva"]["ev_gps_time_sec"].array(library="np")
Expand Down

0 comments on commit 2896117

Please sign in to comment.