Skip to content

Commit

Permalink
Make calib_final_hits optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Marjolein van Nuland - Troost committed Jun 24, 2024
1 parent 40b1b15 commit d50a155
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion event_display/interactive_event_display/display_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def create_3d_figure(minerva_data, data, evid):
trigger = ((event["unix_ts"][:] + event["ts_start"][:]/1e7)/1.2).astype(int)[0]

prompthits_ev = data["charge/events", "charge/calib_prompt_hits", evid]
finalhits_ev = data["charge/events", "charge/calib_final_hits", evid]
try:
finalhits_ev = data["charge/events", "charge/calib_final_hits", evid]
except:
finalhits_ev = prompthits_ev
print("No final hits found, plotting prompt hits")

if minerva_data is not None and evid<len(minerva_data["minerva"]["offsetX"].array(library="np")):
minerva = draw_minerva()
Expand Down

0 comments on commit d50a155

Please sign in to comment.