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
4108dbaa
Commit
4108dbaa
authored
3 years ago
by
Brandon Piotrzkowski
Browse files
Options
Downloads
Patches
Plain Diff
Change to gracedb SDK for ligo-raven 2.0
parent
9ac9c58e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!842
Change to gracedb SDK for ligo-raven 2.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES.rst
+2
-0
2 additions, 0 deletions
CHANGES.rst
gwcelery/tasks/raven.py
+3
-4
3 additions, 4 deletions
gwcelery/tasks/raven.py
gwcelery/tests/test_tasks_raven.py
+1
-1
1 addition, 1 deletion
gwcelery/tests/test_tasks_raven.py
with
6 additions
and
5 deletions
CHANGES.rst
+
2
−
0
View file @
4108dbaa
...
...
@@ -40,6 +40,8 @@ Changelog
- Reduce queries to gracedb by RAVEN by passing event dictionaries directly.
- Switch to use gracedb-sdk for RAVEN.
0.13.1 (2021-03-01)
-------------------
...
...
This diff is collapsed.
Click to expand it.
gwcelery/tasks/raven.py
+
3
−
4
View file @
4108dbaa
...
...
@@ -6,7 +6,6 @@ from celery.utils.log import get_task_logger
from
..
import
app
from
.
import
external_skymaps
from
.
import
gracedb
from
.
import
legacy_gracedb
log
=
get_task_logger
(
__name__
)
...
...
@@ -48,14 +47,14 @@ def calculate_coincidence_far(superevent, exttrig, tl, th):
se_dict
=
superevent
,
ext_dict
=
exttrig
,
grb_search
=
exttrig
[
'
search
'
],
se_fitsfile
=
se_skymap
,
ext_fitsfile
=
ext_skymap
,
incl_sky
=
True
,
gracedb
=
legacy_
gracedb
.
client
,
incl_sky
=
True
,
gracedb
=
gracedb
.
client
,
far_grb
=
exttrig
[
'
far
'
])
else
:
return
ligo
.
raven
.
search
.
calc_signif_gracedb
(
superevent_id
,
exttrig_id
,
tl
,
th
,
se_dict
=
superevent
,
ext_dict
=
exttrig
,
grb_search
=
exttrig
[
'
search
'
],
incl_sky
=
False
,
gracedb
=
legacy_
gracedb
.
client
,
incl_sky
=
False
,
gracedb
=
gracedb
.
client
,
far_grb
=
exttrig
[
'
far
'
])
...
...
@@ -160,7 +159,7 @@ def search(gracedb_id, alert_object, tl=-5, th=5, group=None,
"""
return
ligo
.
raven
.
search
.
search
(
gracedb_id
,
tl
,
th
,
event_dict
=
alert_object
,
gracedb
=
legacy_
gracedb
.
client
,
gracedb
=
gracedb
.
client
,
group
=
group
,
pipelines
=
pipelines
,
searches
=
searches
)
...
...
This diff is collapsed.
Click to expand it.
gwcelery/tests/test_tasks_raven.py
+
1
−
1
View file @
4108dbaa
...
...
@@ -3,7 +3,7 @@ from unittest.mock import call, patch
import
pytest
from
.test_tasks_skymaps
import
toy_fits_filecontents
# noqa: F401
from
..tasks
import
legacy_gracedb
as
gracedb
from
..tasks
import
gracedb
from
..tasks
import
raven
...
...
This diff is collapsed.
Click to expand it.
Leo Pound Singer
@leo-singer
mentioned in issue
#391 (closed)
·
3 years ago
mentioned in issue
#391 (closed)
mentioned in issue #391
Toggle commit list
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