Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gwcelery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Geoffrey Mo
gwcelery
Commits
6d9723c4
Commit
6d9723c4
authored
3 months ago
by
Leo P. Singer
Committed by
Deep Chatterjee
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Don't return unused strings from task
parent
43be1358
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwcelery/tasks/rrt_utils.py
+5
-5
5 additions, 5 deletions
gwcelery/tasks/rrt_utils.py
with
5 additions
and
5 deletions
gwcelery/tasks/rrt_utils.py
+
5
−
5
View file @
6d9723c4
...
...
@@ -8,7 +8,7 @@ from ..util.tempfile import NamedTemporaryFile
from
.
import
gracedb
@app.task
(
shared
=
False
)
@app.task
(
ignore_result
=
True
,
shared
=
False
)
def
check_high_profile
(
skymap
,
em_bright
,
p_astro
,
superevent
):
superevent_id
=
superevent
[
'
superevent_id
'
]
...
...
@@ -16,7 +16,7 @@ def check_high_profile(skymap, em_bright,
# RAVEN_ALERT HIGH_PROFILE is implemented in raven.py
# Checking if the label is applied beforehand
if
'
HIGH_PROFILE
'
in
superevent
[
'
labels
'
]:
return
"
HIGH_PROFILE already applied
"
return
#
HIGH_PROFILE already applied
# low-far unmodelled burst condition
far_list
=
[]
...
...
@@ -32,7 +32,7 @@ def check_high_profile(skymap, em_bright,
far_list_sorted
[
0
][
"
search
"
]
!=
"
BBH
"
:
gracedb
.
create_label
.
si
(
'
HIGH_PROFILE
'
,
superevent_id
).
delay
()
return
"
Event with the lowest FAR is a Burst event. Applying label
"
return
#
Event with the lowest FAR is a Burst event. Applying label
# annotation number condition
preferred_event
=
superevent
[
'
preferred_event_data
'
]
...
...
@@ -55,5 +55,5 @@ def check_high_profile(skymap, em_bright,
if
(
p_bns
>
0.1
or
p_nsbh
>
0.1
or
has_remnant
>
0.1
or
sky_area
<
100
):
# noqa: E501
gracedb
.
create_label
.
si
(
'
HIGH_PROFILE
'
,
superevent_id
).
delay
()
return
"
Annotations condition satisfied. Applying label
"
return
"
No conditions satisfied. Skipping
"
return
#
Annotations condition satisfied. Applying label
return
#
No conditions satisfied. Skipping
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