Skip to content
Snippets Groups Projects

Revert back to grabbing all G-events from GraceDB; fixes #82

Files
2
@@ -43,8 +43,13 @@ def main_dict(gracedb_id, client):
event = client.superevent(gracedb_id).json()
preferred_event = event['preferred_event_data']
preferred_pipeline = preferred_event['pipeline']
other_pipelines = list(event["pipeline_preferred_events"].keys())
other_pipelines.remove(preferred_pipeline)
other_pipelines = []
gw_events = event['gw_events']
for gw_event in gw_events:
pipeline = client.event(gw_event).json()['pipeline']
if pipeline not in other_pipelines and pipeline != preferred_pipeline:
other_pipelines.append(pipeline)
voevents = client.voevents(gracedb_id).json()['voevents']
if not voevents:
Loading