bilby.gw.utils.gracedb_to_json

bilby.gw.utils.gracedb_to_json(gracedb, cred=None, service_url='https://gracedb.ligo.org/api/', outdir=None)[source]

Script to download a GraceDB candidate

Parameters:
gracedb: str

The UID of the GraceDB candidate

cred:

Credentials for authentications, see ligo.gracedb.rest.GraceDb

service_url:

The url of the GraceDB candidate GraceDB ‘https://gracedb.ligo.org/api/’ (default) GraceDB-playground ‘https://gracedb-playground.ligo.org/api/

outdir: str, optional

If given, a string identfying the location in which to store the json