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
0f56fcc7
Commit
0f56fcc7
authored
6 years ago
by
Patrick Godwin
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_feature_aggregator: update tags in snr measurement to store subsystem information as well
parent
381373f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-burst/bin/gstlal_feature_aggregator
+9
-2
9 additions, 2 deletions
gstlal-burst/bin/gstlal_feature_aggregator
with
9 additions
and
2 deletions
gstlal-burst/bin/gstlal_feature_aggregator
+
9
−
2
View file @
0f56fcc7
...
...
@@ -127,7 +127,7 @@ class StreamAggregator(object):
### define measurements to be stored from aggregators
self
.
agg_sink
.
register_schema
(
'
latency
'
,
columns
=
'
data
'
,
column_key
=
'
data
'
,
tags
=
'
job
'
,
tag_key
=
'
job
'
)
self
.
agg_sink
.
register_schema
(
'
snr
'
,
columns
=
'
data
'
,
column_key
=
'
data
'
,
tags
=
'
channel
'
,
tag_key
=
'
channel
'
)
self
.
agg_sink
.
register_schema
(
'
snr
'
,
columns
=
'
data
'
,
column_key
=
'
data
'
,
tags
=
(
'
channel
'
,
'
subsystem
'
),
tag_key
=
'
channel
'
)
def
fetch_data
(
self
,
job_consumer
):
"""
...
...
@@ -170,7 +170,7 @@ class StreamAggregator(object):
self
.
agg_sink
.
store_columns
(
'
latency
'
,
metric_data
,
aggregate
=
self
.
data_type
)
### store and aggregate features
timeseries_data
=
{
channel
:
{
'
time
'
:
timeseries
[
'
trigger_time
'
],
'
fields
'
:
{
'
data
'
:
timeseries
[
'
snr
'
]}}
for
channel
,
timeseries
in
all_timeseries
.
items
()}
timeseries_data
=
{
(
channel
,
self
.
_channel_to_subsystem
(
channel
))
:
{
'
time
'
:
timeseries
[
'
trigger_time
'
],
'
fields
'
:
{
'
data
'
:
timeseries
[
'
snr
'
]}}
for
channel
,
timeseries
in
all_timeseries
.
items
()}
self
.
agg_sink
.
store_columns
(
'
snr
'
,
timeseries_data
,
aggregate
=
self
.
data_type
)
try
:
...
...
@@ -222,6 +222,13 @@ class StreamAggregator(object):
logger
.
info
(
'
shutting down feature aggregator...
'
)
self
.
is_running
=
False
@staticmethod
def
_channel_to_subsystem
(
channel
):
"""
given a channel, returns the subsystem the channel lives in
"""
return
channel
.
split
(
'
:
'
)[
1
].
split
(
'
-
'
)[
0
]
class
SignalHandler
(
object
):
"""
helper class to shut down the stream aggregator gracefully before exiting
...
...
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