Commit 84f4e611 authored by Soichiro Morisaki's avatar Soichiro Morisaki
Browse files

conf/__init__.py and tasks/orchestrator.py: increase the FAR threshold of...

conf/__init__.py and tasks/orchestrator.py: increase the FAR threshold of online PE to the OPA threshold.
parent 06886329
......@@ -10,6 +10,8 @@ Changelog
notifications about 30 seconds earlier, and will receive notifications even
if some of the annotations fail.
- Increase the FAR threshold of online PE to the public alert threshold.
0.9.0 (2019-11-23)
------------------
......
......@@ -287,10 +287,6 @@ detchar_bit_definitions = {
omegascan_durations = [0.5, 2.0, 10.0]
"""Durations for omegascans, symmetric about t0"""
pe_threshold = 1.0 / (28 * 86400)
"""FAR threshold in Hz for Parameter Estimation. PE group now applies
1/(4 weeks) as a threshold. 86400 seconds = 1 day and 28 days = 4 weeks."""
pe_results_path = os.path.join(os.getenv('HOME'), 'public_html/online_pe')
"""Path to the results of Parameter Estimation (see
:mod:`gwcelery.tasks.inference`)"""
......
......@@ -574,11 +574,13 @@ def parameter_estimation(far_event, superevent_id):
"""
far, event = far_event
preferred_event_id = event['graceid']
threshold = (app.conf['preliminary_alert_far_threshold']['cbc'] /
app.conf['preliminary_alert_trials_factor']['cbc'])
# FIXME: it will be better to start parameter estimation for 'burst'
# events.
if event['group'] == 'CBC':
canvas = inference.pre_pe_tasks(event, superevent_id)
if far <= app.conf['pe_threshold']:
if far <= threshold:
canvas |= group(
inference.start_pe.s(
preferred_event_id, superevent_id, 'lalinference'
......@@ -593,7 +595,7 @@ def parameter_estimation(far_event, superevent_id):
graceid=superevent_id,
message='FAR is larger than the PE threshold, '
'{} Hz. Parameter Estimation will not '
'start.'.format(app.conf['pe_threshold']),
'start.'.format(threshold),
tags='pe'
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment