Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
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
Duncan Macleod
gstlal
Commits
a2df836b
Commit
a2df836b
authored
6 years ago
by
Chad Hanna
Browse files
Options
Downloads
Patches
Plain Diff
inspiral.py: somewhate cleanup bottle routes and enable virgo and kagra
parent
fe144632
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/inspiral.py
+7
-11
7 additions, 11 deletions
gstlal-inspiral/python/inspiral.py
with
7 additions
and
11 deletions
gstlal-inspiral/python/inspiral.py
+
7
−
11
View file @
a2df836b
...
...
@@ -505,8 +505,10 @@ class Data(object):
bottle
.
route
(
"
/latency_history.txt
"
)(
self
.
web_get_latency_history
)
bottle
.
route
(
"
/snr_history.txt
"
)(
self
.
web_get_snr_history
)
# FIXME don't hardcode the ifos
bottle
.
route
(
"
/H1_snr_history.txt
"
)(
self
.
web_get_H1_snr_history
)
bottle
.
route
(
"
/L1_snr_history.txt
"
)(
self
.
web_get_L1_snr_history
)
bottle
.
route
(
"
/H1_snr_history.txt
"
)(
lambda
:
self
.
web_get_sngl_snr_history
(
ifo
=
"
H1
"
))
bottle
.
route
(
"
/L1_snr_history.txt
"
)(
lambda
:
self
.
web_get_sngl_snr_history
(
ifo
=
"
L1
"
))
bottle
.
route
(
"
/V1_snr_history.txt
"
)(
lambda
:
self
.
web_get_sngl_snr_history
(
ifo
=
"
V1
"
))
bottle
.
route
(
"
/K1_snr_history.txt
"
)(
lambda
:
self
.
web_get_sngl_snr_history
(
ifo
=
"
K1
"
))
bottle
.
route
(
"
/likelihood_history.txt
"
)(
self
.
web_get_likelihood_history
)
bottle
.
route
(
"
/far_history.txt
"
)(
self
.
web_get_far_history
)
bottle
.
route
(
"
/ram_history.txt
"
)(
self
.
web_get_ram_history
)
...
...
@@ -652,7 +654,7 @@ class Data(object):
self
.
far_history
=
deque
(
maxlen
=
1000
)
self
.
ram_history
=
deque
(
maxlen
=
2
)
# FIXME don't hardcode
self
.
ifo_snr_history
=
{
"
H1
"
:
deque
(
maxlen
=
10000
),
"
L1
"
:
deque
(
maxlen
=
10000
)}
self
.
ifo_snr_history
=
{
"
H1
"
:
deque
(
maxlen
=
10000
),
"
L1
"
:
deque
(
maxlen
=
10000
),
"
V1
"
:
deque
(
maxlen
=
10000
),
"
K1
"
:
deque
(
maxlen
=
10000
)}
def
appsink_new_buffer
(
self
,
elem
):
with
self
.
lock
:
...
...
@@ -1229,16 +1231,10 @@ class Data(object):
yield
"
%f %e
\n
"
%
(
time
,
snr
)
# FIXME, don't hardcode these routes
def
web_get_
H1
_snr_history
(
self
):
def
web_get_
sngl
_snr_history
(
self
,
ifo
=
"
H1
"
):
with
self
.
lock
:
# first one in the list is sacrificed for a time stamp
for
time
,
snr
in
self
.
ifo_snr_history
[
"
H1
"
]:
yield
"
%f %e
\n
"
%
(
time
,
snr
)
def
web_get_L1_snr_history
(
self
):
with
self
.
lock
:
# first one in the list is sacrificed for a time stamp
for
time
,
snr
in
self
.
ifo_snr_history
[
"
L1
"
]:
for
time
,
snr
in
self
.
ifo_snr_history
[
ifo
]:
yield
"
%f %e
\n
"
%
(
time
,
snr
)
def
web_get_likelihood_history
(
self
):
...
...
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