Skip to content
Snippets Groups Projects
Commit 860ef346 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Add more fields to parse GRB voevents; Fixes #154

parent a7472889
No related branches found
No related tags found
1 merge request!26Add more fields to parse GRB voevents; Fixes #154
Pipeline #62284 passed with warnings
......@@ -643,7 +643,8 @@ def populateGrbEventFromVOEventFile(filename, event):
# Fermi uses Trig_Dur or Data_Integ, while Swift uses Integ_Time
# One or the other may be present, but not both
VOEvent_params = [pn[1] for pn in getParamNames(v)]
trig_dur_params = ["Trig_Dur","Data_Integ","Integ_Time"]
trig_dur_params = ["Trig_Dur", "Trans_Duration", "Data_Integ",
"Integ_Time", "Trig_Timescale"]
trigger_duration = None
for param in trig_dur_params:
if (param in VOEvent_params):
......@@ -659,8 +660,9 @@ def populateGrbEventFromVOEventFile(filename, event):
# try to find a trigger_id value
trigger_id = None
try:
trigger_id = findParam(v, '', 'TrigID').get_value()
except:
pass
trigger_id_params = ['TrigID', 'Trans_Num', 'EventID']
for param in trigger_id_params:
if (param in VOEvent_params):
trigger_id = findParam(v, "", param).get_value()
break
event.trigger_id = trigger_id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment