Commit 097d1b3d authored by Alexander Pace's avatar Alexander Pace
Browse files

adding combined_skymap_filename (optional string) and raven_coinc (optional...

adding combined_skymap_filename (optional string)  and raven_coinc (optional boolean) to createVOEvent method
parent 131a72bb
......@@ -2181,7 +2181,8 @@ class GraceDb(GsiRest):
def createVOEvent(self, object_id, voevent_type, skymap_type=None,
skymap_filename=None, internal=True, open_alert=False,
skymap_filename=None, combined_skymap_filename=None,
internal=True, open_alert=False, raven_coinc=False,
hardware_inj=False, CoincComment=False, ProbHasNS=None,
ProbHasRemnant=None, BNS=None, NSBH=None, BBH=None,
Terrestrial=None, MassGap=None, *args, **kwargs):
......@@ -2196,12 +2197,17 @@ class GraceDb(GsiRest):
skymap_filename (:obj:`str`, optional): name of skymap file on
the GraceDB server (required for 'initial' and 'update' alerts,
optional for 'preliminary' alerts).
combined_skymap_file (:obj:`str`, optional): name of combined
skymap file, if present
internal (:obj:`bool`, optional): whether the VOEvent should be
distributed to LIGO-Virgo members only.
hardware_inj (:obj:`bool`, optional): whether the candidate is a
hardware injection.
open_alert (:obj:`bool`, optional): whether the candidate is an
open alert or not.
raven_coinc (:obj:`bool`, optional): is VOEvent result of
coincidence from RAVEN pipeline. Tells GraceDB to look for
`coinc_far` and `em_type` data models.
CoincComment (:obj:`bool`, optional): whether the candidate has a
possible counterpart GRB.
ProbHasNS (:obj:`float`, optional): probability that at least one
......@@ -2265,12 +2271,15 @@ class GraceDb(GsiRest):
'open_alert': open_alert,
'hardware_inj': hardware_inj,
'CoincComment': CoincComment,
'raven_coinc': raven_coinc,
# Add optional args
if skymap_type is not None:
body['skymap_type'] = skymap_type
if skymap_filename is not None:
body['skymap_filename'] = skymap_filename
if combined_skymap_filename is not None:
body['combined_skymap_filename'] = combined_skymap_filename
if ProbHasNS is not None:
body['ProbHasNS'] = ProbHasNS
if ProbHasRemnant is not None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment