Skip to content
Snippets Groups Projects
Commit 93933928 authored by Deep Chatterjee's avatar Deep Chatterjee
Browse files

bug fix in getting p_astro filename; fixed #502

when earlywarning_preliminary_alert is called with a timeout, the
alert variable contains stale information.
parent a9bf0245
No related branches found
No related tags found
No related merge requests found
Pipeline #485292 passed
......@@ -570,10 +570,8 @@ def earlywarning_preliminary_alert(event, alert, annotation_prefix='',
'Valid skymap required for preliminary alert'
)
if alert['object']['preferred_event_data']['group'] == 'CBC':
p_astro_filename = \
alert['object']['preferred_event_data']['pipeline'] + \
'.p_astro.json'
if event['group'] == 'CBC':
p_astro_filename = event['pipeline'].lower() + '.p_astro.json'
else:
p_astro_filename = None
......
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