Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
lscsoft
GstLAL
Commits
c7628a55
Commit
c7628a55
authored
5 years ago
by
Patrick Godwin
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_ll_dq: fix issues associated with ligo-scald 0.7.0 release
parent
d2920fd4
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-ugly/bin/gstlal_ll_dq
+7
-7
7 additions, 7 deletions
gstlal-ugly/bin/gstlal_ll_dq
with
7 additions
and
7 deletions
gstlal-ugly/bin/gstlal_ll_dq
+
7
−
7
View file @
c7628a55
...
...
@@ -36,8 +36,8 @@ from gi.repository import GObject, Gst
GObject
.
threads_init
()
Gst
.
init
(
None
)
from
ligo.scald
import
aggregator
from
ligo.scald
import
io
from
ligo.scald
import
utils
from
ligo.scald
.io
import
core
,
hdf5
,
influx
from
gstlal
import
pipeparts
,
datasource
,
simplehandler
,
pipeio
,
reference_psd
...
...
@@ -126,7 +126,7 @@ class PSDHandler(simplehandler.Handler):
# Only reduce every 100s
if
(
buftime
-
self
.
last_reduce_time
)
>=
100
:
self
.
last_reduce_time
=
int
(
round
(
buftime
,
-
2
))
logging
.
info
(
"
reducing data and writing PSD snapshot for %d @ %d
"
%
(
buftime
,
int
(
aggregator
.
now
())))
logging
.
info
(
"
reducing data and writing PSD snapshot for %d @ %d
"
%
(
buftime
,
int
(
utils
.
gps_
now
())))
data
=
{
route
:
{
self
.
instrument
:
{
'
time
'
:
list
(
self
.
timedeq
),
'
fields
'
:
{
'
data
'
:
list
(
self
.
datadeq
[
route
])}}}
for
route
in
self
.
routes
}
...
...
@@ -141,8 +141,8 @@ class PSDHandler(simplehandler.Handler):
# Save a "latest" psd
# NOTE: The PSD is special, we just record it. No min/median/max
thisdir
=
os
.
path
.
join
(
self
.
out_path
,
io
.
common
.
gps_to_leaf_directory
(
buftime
))
aggregat
or
.
makedir
(
thisdir
)
thisdir
=
os
.
path
.
join
(
self
.
out_path
,
core
.
gps_to_leaf_directory
(
buftime
))
c
or
e
.
makedir
(
thisdir
)
psd_name
=
"
%s-PSD-%d-100.hdf5
"
%
(
self
.
instrument
,
int
(
round
(
buftime
,
-
2
)))
self
.
to_hdf5
(
os
.
path
.
join
(
thisdir
,
psd_name
),
{
"
freq
"
:
psd_freq
,
"
asd
"
:
psd_data
,
"
time
"
:
numpy
.
array
([
buftime
])})
...
...
@@ -179,9 +179,9 @@ if __name__ == '__main__':
# set up aggregator sink
if
options
.
data_backend
==
'
influx
'
:
agg_sink
=
io
.
influx
.
Aggregator
(
hostname
=
options
.
influx_hostname
,
port
=
options
.
influx_port
,
db
=
options
.
influx_database_name
,
auth
=
options
.
enable_auth
,
https
=
options
.
enable_https
)
agg_sink
=
influx
.
Aggregator
(
hostname
=
options
.
influx_hostname
,
port
=
options
.
influx_port
,
db
=
options
.
influx_database_name
,
auth
=
options
.
enable_auth
,
https
=
options
.
enable_https
)
else
:
### hdf5 data backend
agg_sink
=
io
.
hdf5
.
Aggregator
(
rootdir
=
options
.
out_path
,
num_processes
=
options
.
num_threads
)
agg_sink
=
hdf5
.
Aggregator
(
rootdir
=
options
.
out_path
,
num_processes
=
options
.
num_threads
)
# register measurement schemas for aggregators
for
route
in
(
'
noise
'
,
'
range_history
'
):
...
...
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