Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
locklost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Benjamin Mannix
locklost
Commits
6deeb04e
Commit
6deeb04e
authored
5 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Plain Diff
Merge branch 'bs_stage_2_tag' into 'master'
Tag locklosses that occur while SEI_BS is transitioning Closes
#149
See merge request
!92
parents
cb9680da
376ec745
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
locklost/config.py
+1
-0
1 addition, 0 deletions
locklost/config.py
locklost/plugins/__init__.py
+3
-0
3 additions, 0 deletions
locklost/plugins/__init__.py
locklost/plugins/sei_bs_trans.py
+28
-0
28 additions, 0 deletions
locklost/plugins/sei_bs_trans.py
with
32 additions
and
0 deletions
locklost/config.py
+
1
−
0
View file @
6deeb04e
...
...
@@ -66,6 +66,7 @@ TAG_COLORS = {
'
WINDY
'
:
(
'
springgreen
'
,
'
mediumblue
'
),
'
SEISMIC
'
:
(
'
orange
'
,
'
black
'
),
'
ADS_EXCURSION
'
:
(
'
mediumvioletred
'
,
'
plum
'
),
'
SEI_BS_TRANS
'
:
(
'
sienna
'
,
'
orange
'
),
}
##################################################
...
...
This diff is collapsed.
Click to expand it.
locklost/plugins/__init__.py
+
3
−
0
View file @
6deeb04e
...
...
@@ -61,6 +61,9 @@ register_plugin(check_wind)
from
.ads_excursion
import
check_ads
register_plugin
(
check_ads
)
from
.sei_bs_trans
import
check_sei_bs
register_plugin
(
check_sei_bs
)
# add last since this needs to wait for additional data
from
.seismic
import
check_seismic
register_plugin
(
check_seismic
)
This diff is collapsed.
Click to expand it.
locklost/plugins/sei_bs_trans.py
0 → 100644
+
28
−
0
View file @
6deeb04e
import
logging
from
gwpy.segments
import
Segment
from
..
import
config
from
..
import
data
WINDOW
=
[
-
3
,
0
]
CHANNEL
=
[
'
{}:GRD-SEI_BS_STATE_N
'
.
format
(
config
.
IFO
)]
##############################################
def
check_sei_bs
(
event
):
"""
Checks if SEI_BS Guardian node is in transition state during lockloss and
creates a tag.
"""
if
config
.
IFO
==
'
L1
'
:
logging
.
info
(
"
followup is not configured or not applicable to LLO.
"
)
return
mod_window
=
[
WINDOW
[
0
],
WINDOW
[
1
]]
segment
=
Segment
(
mod_window
).
shift
(
int
(
event
.
gps
))
stage_2_channel
=
data
.
fetch
(
CHANNEL
,
segment
)[
0
]
if
any
(
stage_2_channel
.
data
==
-
19
):
event
.
add_tag
(
'
SEI_BS_TRANS
'
)
else
:
logging
.
info
(
'
SEI BS was not transitioning during lockloss
'
)
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