Skip to content
Snippets Groups Projects
Commit c7f82a17 authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Added Data_Integ to list of accepted parameters for trigger_duration

parent 3b30c7e2
No related branches found
No related tags found
No related merge requests found
......@@ -633,7 +633,7 @@ def populateGrbEventFromVOEventFile(filename, event):
event.how_reference_url = v.get_How().get_Reference()[0].uri
# try to find a trigger_duration value
# Fermi uses Trig_Dur, while Swift uses Integ_Time
# Fermi uses Trig_Dur or Data_Integ, while Swift uses Integ_Time
# One or the other may be present, but not both
trigger_duration = None
try:
......@@ -644,6 +644,10 @@ def populateGrbEventFromVOEventFile(filename, event):
trigger_duration = findParam(v, '', 'Integ_Time').get_value()
except:
pass
try:
trigger_duration = findParam(v, '', 'Data_Integ').get_value()
except:
pass
event.trigger_duration = trigger_duration
# try to find a trigger_id value
......
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