From 2951552d05344b857be53b6cd2d8eb5f894d5431 Mon Sep 17 00:00:00 2001 From: Brandon Piotrzkowski <piotrzk3@uwm.edu> Date: Sat, 28 Dec 2019 20:06:34 -0500 Subject: [PATCH] Fix lint issues --- gwcelery/tasks/raven.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gwcelery/tasks/raven.py b/gwcelery/tasks/raven.py index 04e69d786..f5b743dd7 100644 --- a/gwcelery/tasks/raven.py +++ b/gwcelery/tasks/raven.py @@ -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) -- GitLab