Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
4c8afd4e
Commit
4c8afd4e
authored
Dec 16, 2020
by
Dónal Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add data for volume and flow plots
parent
e61db898
Pipeline
#721
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
NativeUI.py
NativeUI/NativeUI.py
+1
-1
No files found.
NativeUI/NativeUI.py
View file @
4c8afd4e
...
...
@@ -48,7 +48,7 @@ class NativeUI(HEVClient, QMainWindow):
if
(
payload
[
"type"
]
==
"DATA"
):
self
.
data
=
payload
[
"DATA"
]
# remove first entry and append plot data to end
self
.
plots
=
np
.
append
(
np
.
delete
(
self
.
plots
,
0
,
0
),
[[
self
.
data
[
"timestamp"
],
self
.
data
[
"pressure_patient"
],
0
,
0
]],
axis
=
0
)
self
.
plots
=
np
.
append
(
np
.
delete
(
self
.
plots
,
0
,
0
),
[[
self
.
data
[
"timestamp"
],
self
.
data
[
"pressure_patient"
],
self
.
data
[
"flow"
],
self
.
data
[
"volume"
]
]],
axis
=
0
)
except
KeyError
:
logging
.
warning
(
f
"Invalid payload: {payload}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment