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
61a0ab5c
Commit
61a0ab5c
authored
Apr 09, 2021
by
Benjamin Mummery
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed alarms workaround
parent
51fe1440
Pipeline
#1206
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
NativeUI.py
NativeUI/NativeUI.py
+2
-8
No files found.
NativeUI/NativeUI.py
View file @
61a0ab5c
...
...
@@ -130,7 +130,7 @@ class NativeUI(HEVClient, QMainWindow):
"flow_axis_range"
:
[
-
40
,
80
],
"volume_axis_range"
:
[
0
,
80
],
}
self
.
__alarms
=
[]
self
.
__alarms
=
{}
self
.
__targets
=
{}
self
.
__personal
=
{}
self
.
ongoingAlarms
=
{}
...
...
@@ -235,16 +235,10 @@ class NativeUI(HEVClient, QMainWindow):
"""
Set the contents of the specified database dict, assuming that it is present in
__database_list. Uses lock to avoid race conditions.
TODO: the alarms workaround is a little janky - do alarms need to be a list or
can they be a dict in line with the other dbs?
"""
temp
=
self
.
get_db
(
database_name
)
for
key
in
payload
:
if
database_name
in
[
"alarms"
,
"__alarms"
]:
temp
=
payload
else
:
temp
[
key
]
=
payload
[
key
]
temp
[
key
]
=
payload
[
key
]
with
self
.
db_lock
:
setattr
(
self
,
...
...
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