Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gwcelery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emfollow
gwcelery
Commits
2951552d
Commit
2951552d
authored
5 years ago
by
Brandon Piotrzkowski
Browse files
Options
Downloads
Patches
Plain Diff
Fix lint issues
parent
fbd01130
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwcelery/tasks/raven.py
+4
-5
4 additions, 5 deletions
gwcelery/tasks/raven.py
with
4 additions
and
5 deletions
gwcelery/tasks/raven.py
+
4
−
5
View file @
2951552d
...
...
@@ -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 spat
ial
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment