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
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
Jameson Rollins
locklost
Commits
35f4b9ac
Commit
35f4b9ac
authored
4 years ago
by
Camilla Compton
Browse files
Options
Downloads
Patches
Plain Diff
add thresh=lower_t if no threshold crossings found for clearer graphs
parent
cfffce49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!98
Draft: WIP Positive/negative standard deviation refinement
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
locklost/plugins/refine.py
+2
-2
2 additions, 2 deletions
locklost/plugins/refine.py
with
2 additions
and
2 deletions
locklost/plugins/refine.py
+
2
−
2
View file @
35f4b9ac
...
...
@@ -69,7 +69,7 @@ def plot_indicators(event, channel, refined_gps, threshold):
"
threshold
"
,
xy
=
(
ax1
.
get_xlim
()[
0
],
threshold
),
xycoords
=
'
data
'
,
xytext
=
(
8
,
-
1
0
),
xytext
=
(
8
,
-
1
5
),
textcoords
=
'
offset points
'
,
horizontalalignment
=
'
left
'
,
verticalalignment
=
'
top
'
,
...
...
@@ -154,7 +154,6 @@ def find_transition(channel, segment, std_threshold, minimum=None):
"""
refined_gps
=
None
threshold
=
None
buf
=
data
.
fetch
(
channel
,
segment
)[
0
]
# calculate mean and std using first 5 seconds of window
...
...
@@ -191,6 +190,7 @@ def find_transition(channel, segment, std_threshold, minimum=None):
logging
.
info
(
"
threshold: {}
"
.
format
(
threshold
))
logging
.
info
(
"
refined time: {}
"
.
format
(
refined_gps
))
else
:
threshold
=
lower_threshold
# to be shown on graphs
logging
.
info
(
"
no threshold crossings, unable to resolve time
"
)
return
threshold
,
refined_gps
...
...
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