Skip to content
Snippets Groups Projects
Commit 2951552d authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Fix lint issues

parent fbd01130
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !725. Comments created here will be created in the context of that merge request.
......@@ -3,7 +3,6 @@ import ligo.raven.search
import json
from celery import group
from celery.utils.log import get_task_logger
from ligo.gracedb.exceptions import HTTPError
from ligo.raven import gracedb_events
from ..import app
......@@ -43,21 +42,21 @@ def calculate_coincidence_far(superevent, exttrig, group):
tl, th = tl_cbc, th_cbc
elif group == 'Burst':
tl, th = tl_burst, th_burst
if {'LUMIN_GO', 'SKYMAP_READY'}.issubset(exttrig['labels']):
# if both sky maps available, calculate spat coinc far
# if both sky maps available, calculate spatial coinc far
se_skymap = external_skymaps.get_preferred_skymap(
superevent_id)
ext_skymap = external_skymaps.get_external_skymap_filename(
exttrig_id)
return ligo.raven.search.calc_signif_gracedb(
return ligo.raven.search.calc_signif_gracedb(
superevent_id, exttrig_id, tl, th,
grb_search=exttrig['search'],
se_fitsfile=se_skymap, ext_fitsfile=ext_skymap,
incl_sky=True, gracedb=gracedb.client)
else:
return ligo.raven.search.calc_signif_gracedb(
return ligo.raven.search.calc_signif_gracedb(
superevent_id, exttrig_id, tl, th,
grb_search=exttrig['search'],
incl_sky=False, gracedb=gracedb.client)
......
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