Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
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
Software Public
PASSOFT
SOHViewer
Commits
b0722597
You need to sign in or sign up before continuing.
Commit
b0722597
authored
1 year ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
modify docstring, type hint
parent
1e0eeb08
No related branches found
No related tags found
1 merge request
!165
Fix SOH info not show for bottom of Jerk/DPS and display all info lines for the case data point clicked matches more than one SOH lines.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/view/plotting/plotting_widget/plotting_widget_helper.py
+3
-3
3 additions, 3 deletions
...r/view/plotting/plotting_widget/plotting_widget_helper.py
with
3 additions
and
3 deletions
sohstationviewer/view/plotting/plotting_widget/plotting_widget_helper.py
+
3
−
3
View file @
b0722597
from
typing
import
Lis
t
,
Optional
from
typing
import
Dic
t
,
Optional
import
numpy
as
np
def
get_index_from_data_picked
(
chan_data
:
List
[
np
.
ndarray
]
,
tm
:
float
,
val
:
float
)
->
Optional
[
int
]
:
chan_data
:
Dict
,
tm
:
float
,
val
:
float
)
->
np
.
ndarray
:
"""
Get index of data picked
:param chan_data: dict of data to plot that includes
'
times
'
,
'
data
'
key
:param tm: epoch time of a clicked point
:param val: data value of a clicked point
:return
section_idx: index of tm
inside np.ndarray found
:return
real_indexes: list index of data point
inside np.ndarray found
"""
if
chan_data
[
'
chan_db_info
'
][
'
plotType
'
]
==
'
upDownDots
'
:
# actual plotting has value -0.5 or 0.5;
...
...
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