Skip to content
Snippets Groups Projects
Commit e3e69385 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Change Retraction VOEvent field

Change the Retraction field to be an int (rather than a bool)
to match other "flag-type" parameters.
parent e052036b
No related branches found
No related tags found
1 merge request!10Updates to VOEvent schema and contents
......@@ -180,11 +180,11 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
Description=["VOEvent alert type"]))
w.add_Param(Param(name="Retraction",
dataType="string",
ucd="meta.code",
dataType="int",
ucd="meta.number",
unit="",
value= "true" if voevent_type == 'retraction' else "false",
Description=["Set to true if the event is retracted."]))
value=(1 if voevent_type == 'retraction' else 0),
Description=["Set to 1 if the event is retracted, otherwise 0"]))
# Shib protected event page
# Whether the event is a hardware injection or not
......
......@@ -176,11 +176,11 @@ def construct_voevent_file(superevent, voevent, request=None,
Description=["VOEvent alert type"]))
w.add_Param(Param(name="Retraction",
dataType="string",
ucd="meta.code",
dataType="int",
ucd="meta.number",
unit="",
value= "true" if voevent_type == 'retraction' else "false",
Description=["Set to true if the event is retracted."]))
value=(1 if voevent_type == 'retraction' else 0),
Description=["Set to 1 if the event is retracted, otherwise 0"]))
# Whether the event is a hardware injection or not
w.add_Param(Param(name="HardwareInj",
......
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