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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package 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
Austin Jennings
locklost
Commits
89c39c43
Commit
89c39c43
authored
5 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Patches
Plain Diff
minor cleanup
parent
85f33645
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
locklost/analyze.py
+2
-2
2 additions, 2 deletions
locklost/analyze.py
locklost/search.py
+1
-1
1 addition, 1 deletion
locklost/search.py
with
3 additions
and
3 deletions
locklost/analyze.py
+
2
−
2
View file @
89c39c43
...
...
@@ -103,7 +103,7 @@ def analyze_condor(event):
def
_parser_add_arguments
(
parser
):
from
.util
import
GPSTimeParseAction
egroup
=
parser
.
add_mutually_exclusive_group
(
required
=
True
)
egroup
.
add_argument
(
'
event
'
,
action
=
GPSTimeParseAction
,
nargs
=
'
?
'
,
egroup
.
add_argument
(
'
event
'
,
action
=
GPSTimeParseAction
,
nargs
=
'
?
'
,
type
=
int
,
help
=
"
event ID / GPS second
"
)
egroup
.
add_argument
(
'
--condor
'
,
action
=
GPSTimeParseAction
,
nargs
=
2
,
metavar
=
'
GPS
'
,
help
=
"
condor analyze all events within GPS range
"
)
...
...
@@ -166,7 +166,7 @@ def main(args=None):
pass
if
not
event
:
logging
.
info
(
"
no event matching GPS {}. searching...
"
.
format
(
int
(
args
.
event
)))
search
.
search
((
int
(
args
.
event
)
-
1
,
int
(
args
.
event
)
+
1
))
search
.
search
((
args
.
event
-
1
,
args
.
event
+
1
))
try
:
event
=
LocklossEvent
(
args
.
event
)
except
OSError
as
e
:
...
...
This diff is collapsed.
Click to expand it.
locklost/search.py
+
1
−
1
View file @
89c39c43
...
...
@@ -23,7 +23,7 @@ def search_buf(buf, previous=None, event_callback=None):
Returns the number of events found in the buffer.
"""
lockloss_indices
=
[
s
[
0
]
for
s
in
config
.
GRD_LOCKLOSS_STATES
]
lockloss_indices
=
[
s
[
0
]
for
s
in
config
.
GRD_LOCKLOSS_STATES
]
nevents
=
0
for
time
,
pval
,
val
in
data
.
gen_transitions
(
buf
,
previous
):
trans
=
(
int
(
pval
),
int
(
val
))
...
...
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