CohenLabPrinceton / pvp

Raspberry pi code for controlling the rapid-deploy critical care ventilator
GNU General Public License v3.0
13 stars 15 forks source link

Pulling the Alarms #64

Closed sneakers-the-rat closed 4 years ago

sneakers-the-rat commented 4 years ago

OK this is thee alarm system. might be easier to get an overview from the docs: https://ventilator.readthedocs.io/en/gui/alarm.html

Overview (sorry this is all out of order i'm really really hungry and am racing to go eat):

~Other stuff~

~ TODO ~

but otherwise ya what up

sneakers-the-rat commented 4 years ago

i'll go thru and make line-by-line comments as needed after dinner

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 257


Changes Missing Coverage Covered Lines Changed/Added Lines %
vent/alarm/alarm.py 42 43 97.67%
vent/alarm/rule.py 23 24 95.83%
vent/controller/control_module.py 13 14 92.86%
vent/gui/alarm_manager.py 1 2 50.0%
vent/gui/main.py 4 5 80.0%
vent/io/devices/base.py 9 10 90.0%
vent/gui/widgets/status_bar.py 4 10 40.0%
vent/common/message.py 27 37 72.97%
vent/gui/widgets/components.py 1 14 7.14%
vent/alarm/alarm_manager.py 126 144 87.5%
<!-- Total: 422 500 84.4% -->
Files with Coverage Reduction New Missed Lines %
vent/gui/alarm_manager.py 2 41.03%
vent/controller/control_module.py 15 84.85%
<!-- Total: 17 -->
Totals Coverage Status
Change from base Build 250: 4.7%
Covered Lines: 2222
Relevant Lines: 3011

💛 - Coveralls
sneakers-the-rat commented 4 years ago

one of each alarm type can be active at a time. put another way, all alarm types can be active at the same time. the GUI will manage a coherent display that prioritizes and manages them.

sneakers-the-rat commented 4 years ago

sorry for not merging -- forgot we said for PR submitter to merge after we discuss. Will merge in now