# Dialin Changelog All notable changes to this project will be documented in this file. ### [0.9.1] - 2021-09-03 - DEN-9633: Fixed duplicate function name - DEN-9633: Combined command and publish requirements generation - DEN-9633: Updated requirements generation list - DEN-9633: DIAL-133: Added Dialin commands to get recirc progress info - DEN-8886: Addressed code review feedback. - DEN-8886: Added override functions for alarm status and mode related broadcast intervals. - DEN-9633: Standardize imports - DEN-8886: Addressed DEN-9698 request to add overrides for rinseback volumes. - DEN-9633: DIAL-128: Updated do_log_can format - DEN-9633: Re-arrange requirements order - DEN-9633: DIAL-132: Added treatment stop progress sync - DEN-9633: Removed messages defined by Dialin - DEN-9633: DIAL-85: Get UI version - DEN-9633: DIAL-130: Added reset function to treatment module - DEN-9633: DIAL-131: Add functions to get rinseback info - DEN-9633: DIAL-128: Update do_log_can format - DEN-9448: Fixed more PEP8 style on HD folder - DEN-9448: Fixed more PEP8 style on DG folder - DEN-9448: Fix UI folder style - DEN-9448: Updated utils folder to be compliance with PEP 8 - DEN-9448: Shorten some lengthy comments - DEN-9448: Updated dg folder to be compliance with PEP 8 - DEN-9448: Updated code to be compliance to PEP 8 - DEN-9448: Removed commas in ui proxy enums - DEN-8886: published new blood prime safety volume. - DEN-9416: Implementation - DEN-8030 changed the test code - DEN-8886: Added FPGA voltages to HD voltages class. - DEN-8030 added dg_defs.py - DEN-8030 addressed the code review comments - DEN-8856: Removed CAN frames - DEN-8030 tested DG/HD switches - DEN-8886: Added dialysis state to treatment class. - DEN-9416: Implementations - DEN-8886: Added some treatment state get functions. - DEN-8030 initial release of the DG/HD switches module - DEN-8886: Added get functions for blood prime data. - DEN-8030 updated and tesed the non-volatile modules - DEN-8886: Added overrides for blood prime volumes. Added blood prime safety volume to captured treatment data. - DEN-8886: Added heaters/temps to UF test script. - DEN-8856: Updated water sample state - DEN-8856: Added treatment state enum - Code Review Addressed - DEN-8030 worked on the NV data scripts - DEN-8856: Added TODO and correct naming - DEN-8856: Fixed arterial and venous pressure range for documentation - DEN-8856: Added state enum for DG modes - DEN-8856: Fixed style according to PEP 8 - DEN-8937: Meetings & Support - General Support - DEN-8856: Fixed version import - DEN-8856: Fixed importlib metadata import error - DEN-8856: Removed commented out code - DEN-8856: Use setuptools scm for dialin version - DEN-8030 updated the disinfect scripts - DEN-8030 added top alarm to heat disinfect test script - DEN-8030 updated the disinfects code - DEN-8856: Added functions to get alarm individual flag - DEN-8937: Changing the DG State Message channel - DEN-8030 tested the code - DEN-7347: Added ui proxy command for patient disconnection confirm - DEN-8856: Updated support for valves and separated DG defs in common - DEN-8910: Meetings & Support - General Support - DEN-8856: Added complete and invalid denali message callbacks - DEN-8030 updated the UI heat disinfect states - DEN-8910: Meetings & Support - General Support - DEN-8030 worked on UI heat disinfect - DIAL-104, DEN-8856: Added separate thread for callback functions. - DEN-8856, DEN-8859, DIAL-91: Data logger improvements - DIAL-91: Limiting CANInterface instances, pausing data logging during excel export - DIAL-100: Ensure float_to_bytearray is used for float parameter - DEN-8030 fixed heat disinfect publish type from float to integer - DEN-8030 worked on the UI states for heat and chemical disinfect - DEN-8030 worked on the heat and chemical disinfect - DEN-8030 continued testing chemical and heat disinfect - DEN-8030 added code the be able to read the concentrate pumps and conductivitye sensors in chemical disinfect - DEN-8030 tested chemical disinfect ### [0.9.0] - 2021-06-25 - DEN-9089: Fixed doc issue - DEN-7605: commented out UI Proxy init error for Peter to resolve later. - DEN-8647: Fixed alarm ordering, removed unneeded dialin-only messages, removed unneeded packages in build_common_defs.py - DEN-8647: Added support for power on self test hd requests for version and UI response. - DEN-8454, DEN-8647: Updates to support POST testing. - DEN-7605: Addressed code review feedback. - DEN-8647: Setting txqueuelen - BUG-FIX added the clear the list the NVM class - DEN-8647: Added Dara's fix to clear record packets to be sent to fw. - Revert "Added a clear method to nv_ops_utils" - Added a clear method to nv_ops_utils - DEN-8103: Added command to override filter flush time period - DEN-8103: Added common defs - DEN-8523: Aal: Code Review 0 - DEN-8523: posTx: Code Review 0 - DEN-8103: Updated common defs generation script - DEN-8103: Updated message id for continue to treatment request - DEN-8521: Implementations [Simulator/Testing] - DEN-8103: Added dg rtc set time - DEN-7605: Publish changes in logged in status. - DEN-7605: Added common check function for validating ms parameter of broadcast interval overrides. Added get function for HD and DG to determine logged in status. - DEN-7605: Fixed bug in syringe pump class. - DEN-8521: Implementations [Simulator/Testing] - DEN-8462: Improved POST testing - DEN-8319: TxLog: Code Review 0 - DEN-8251: (BUGFIX) Added pandas to requirements.txt - DEN-8462: Added support for UI POST - Addressed code review comments - DN-7860: Addressed integration issues - DEN-8251: Addressed code review comments - DEN-8251: Addressed code review comments - Last minute modification request to remove timestamps - DEN-7860: Addressed code review comments - DEN-7860: Addressed code review comments - DEN-7860: Addressed code review comments - DEN-7860: Addressed code review comments - DEN-8558: TxLog: Implementation [Simulator/Testing] - DEN-8462: (BUGFIX) Fixed missing message id w/ typo. - Merging DEN-8462_Sprint_45 into develop - DEN-8462: Fixed initiate treatment in ui proxy - DEN-7860: Fixed typo - DEN-7860: Renamed module to represent the number of air bubble detectors in HD - DEN-7860: Implemented HD Air Bubble Detectors script that feeds to the Air Bubbles Dialin API module - DEN-7860: Made function definitions and message names consistent with FW function/message names - DEN-8462: (BUGFIX) Added pandas import to requirements.txt - (BUGFIX) Added pandas requirement - BUGFIX updated HD/DG fluid leak modules - DEN-8462, DIAL-100: Added type hints for dg modules - DEN-8558: TxLog: Implementation [Simulator/Testing] - DEN-8462: fixed dg / hd fluid leak detector overrides - DEN-8462: Ensure unit tests are passing - DEN-8462: Updated build_common_defs.py - Fixed develop - Fixed HD valve position count override - DEN-8030 fixed fluid leak detectors - Fixed typo - DEN-8030 test - Ensure all unit tests pass - DEN-8030 removed the air trap valve's enum in publish - DEN-8030 fixed air trap valve in HD valves - DEN-8251: Addressed code review comments - DEN-8030 tested flush - Fixed a msg_id - DEN-8030 added an HD valves override msg id - DEN-8030 worked on the modes to be able to run with V3 units - DEN-7605: Added safety shutdown status to HD alarms class. - DEN-7605: Addressed code review feedback. - DEN-8055: Addressed code review comments - DEN-7605: Fixed DG voltages bugs. - DIAL-112: Ensuring id parameter comes before value - DEN-8316: TxLog: Implementation [Simulator/Testing] - DEN-8251, DIAL-103: Using asyncio in CAN.py - DEN-7605: Added more overrides and broadcast data to syringe pump. - DEN-8251: Fixed fluid leak publish decorators - DEN-8030 modified UV reactors and HD valves modules - DIAL-100: Added type hints for hd modules - DEN-7605: Added monitored voltage line for P/S gate driver. - DIAL-84: Added test data logger script - DIAL-84: Added DataLogger class to utils. Added more tests for service app. - DEN-8251, DIAL-103, DIAL-104: Improve threading performance, hd alarm volume simulation, maintenance. - DEN-8055: Ack UI sync broadcast in active mode, version adjustments, hd / dg simulator updates for testing alarm volume and device information. - DEN-7568 debugged UV reactors - DEN-7568 addressed code review comments - DEN-7568 addressed code review comments - DEN-7568 added drain line volume to the DG flush mode publication - DEN-7568 fixed the temperature sensors - DEN-7605: fixed typo. - DEN-7605: Fixed treatment parameter reject reason bug in UI proxy. - DEN-7605: Added DG voltage monitor class to DG class. Added DG voltages to voltage test script. - DEN-7568 renamed the heaters functions - DEN-8055: (BUGFIX) Removed print - DEN-7568 added target temperature to the heaters - DEN-8055: (BUGFIX) Fixed initiate treatment and treatment param confirm function - DEN-8055, DIAL-97, DIAL-98, DIAL-95: Dg calibration record truncated message bugfix, CAN.py sleep adjustments, test script improvements - DEN-7605: Added DG voltage monitor class. - DEN-7395: Corrected enumerator on blood leak detector driver Dialin API side, shortened Blood Leak Detector Dialin API script as well - DEN-7792: (BUGFIX) Renamed setup_env.sh to setup_environment.sh - DEN-7831: posTx: Implementation [Simulator/Testing] - DEN-8055, DIAL-97, DIAL-98, DIAL-95: Improvements to core can protocol, service app support for calibration. - DEN-7792: Addressed code review comments - DEN-7395: Addressed code review comments - DEN-8055: (BUGFIX) Prevent deleted reject reasons from being published - DEN-5963 added target flow publish to the RO pump module - DEN-5963 added more items to the temperature sensors driver publish function - DEN-7831: posTx: Implementation [Simulator/Testing] - DEN-8055: Fixed installation issue - DEN-8055: Removed unused import - DEN-8055: Fixed msg_id issues - DEN-8055, DIAL-97, DIAL-98, DIAL-95: DG/HD calibration refactoring, improvements. - DEN-7605: (BUGFIX) Removed dead code in UI Proxy. Use reject reasons array instead of temporary parameter specific variables. Add get function for syringe pump safety volume. - DEN-7605: Added get function for syringe pump safety volume. - DEN-7395: Integration testing - DEN-8052: posTx: Implementation [Messaging] (Disinfection) - DEN-7605: more treatment parameter refactoring in UI proxy class. - DEN-7395: Addressed code review comments - DEN-7395: Implemented first pass of HD Blood Leak Detector driver - DEN-8057: posTx: Implementation [Messaging] (HD StandBy subMode) - DEN-7605: Added alarm info test script. Fixed UI proxy reject reasons for treatment params. - DEN-8055, DIAL-96, DIAL-97, DIAL-98, DIAL-88: Updated dg calibration classes - DEN-5963 addressed a code review comment - DEN-5963 addressed code review comments - DEN-7395: Initial push for Blood Leak Detector driver - DEN-7605: Added HD Voltage monitor class. Corrected contraints comment for broadcast interval override functions. - DEN-7792: Removed unused message ids - DEN-7792: Updated setup_env - DEN-7605: Fixed float params for some syringe pump override functions. - DEN-7792: Fixed unit test name - DEN-7802: Updated start treatment message defs - DEN-7802: Added de-prime operation script - DEN-7147 Code Review 0 - DEN-5963 worked on the heat disinfect script - DEN-7792, DIAL-88: Started refactoring - DEN-7117: addressed final code review comment. - DEN-7792: (BUGFIX) Added missing get hd valves status - DEN-7792, DIAL-79, DIAL-88: Removed unused calibration functions, refactoring and fixed invalid message ids, added unit tests - DEN-7117: (BUGFIX). - DEN-7117: Addressed code review comments. - DEN-7792, DIAL-75: Improved auto generation of common defs. - DEN-5980 added a check in nv_ops_utils to ignore if a cell value in excel is empty or none - DEN-5980 added openpyxl to the requirements.txt - DIAL-80: Updated alarm ids generator to build a python source file - DEN-7792: Added get functions for the valve status and hd air trap status - DEN-7792: (BUGFIX) Corrected saline_bolus state variable name passed to @_publish - DEN-5980 addressed code review comments - DEN-5980 addressed code review comments - DEN-5980 tested the record modules - DEN-5963 added another state to the states of heat disinfect - DEN-7147: preTx: Code Review 0 - DEN-5980 worked on the code - DEN-5980 addressed all the code reive comments - DEN-7347: Added UI interaction for post-treatment mode - DEN-5980 added a flag to prevent getting data when the data processing is in progress - DEN-5980 addressed code review comments - DEN-7377: preTx: Implementation [Dynamic Instruction Loading] ( 2 ) - DEN-5980 addressed code review comments - DEN-7335: (BUGFIX) Re-applied HDAccelerometer change, Removed duplicate hd proxy function - DEN-7335: (BUGFIX) Fixed logger call - DEN-7335: (BUGFIX) Fixed missing end tx handler function / invalid message ID name issue - DEN-7117: Augmented syringe pump test script. Removed load cell test code. Misc updates to syringe pump class. Addressed code review comments. - DEN-5963 added code to the heat disinfect script - DEN-5980 addressed code review comments - DEN-7117: Updated broadcast handling. - DEN-7335: (BUGFIX) Added missing __repr__ function for DGAccelerometerVector class - DEN-5980 updated the code - DEN-5963 added more code to the heat disinfect script - DEN-7335: Misc fixes and improvements, added time and date simulation functions to hd / dg simulators, README updates. - DEN-7117: minor fixes. created a test script for syringe pump. - DEN-7091: Moved pre-treatment enums to dialin common - DEN-7117: Added syringe pump class. - DEN-7145: PreTx Consumables States - Addressed integration problems for DHD Fluid Leak Detector driver - Fixed missing DG/HD messages - DEN-6890: Addressed code review comments - DEN-6890: Addressed code review comments - DEN-6890: Addressed code review comments - DEN-6890: Adding DG Fluid Leak Detector driver to Dialin - DEN-6890: Addressed code review comments - DEN-6890: Addressed code review comments - DEN-6890: Addressed code review comments - DEN-6890: Addressed code review comments - Implemented Dialin API scripts fo Fluid Leak Detector driver - Implemented fluid leak detector driver Dialin library - DEN-7091: Added pre-treatment consumable self-test sub-mode - DEN-7091: Added pretreatment module to HD - DEN-7091: Updated fill command - DEN-7091: Added handler for pre-treatment sub-mode progress - DEN-7091: Added enum for pre-treatment sub-mode states - DEN-7091: Added sample water progress handler - DEN-7091: Added ui proxy commands for HD pre-treatment mode - DEN-6372: Added set HD op mode request. - DEN-7043: (BUGFIX) Ensure AlarmID values are cast to int - Added functions to convert data and time to epoch and vice versa - DEN-7144: preTx: Implementation [Simulator/Testing] ( 1 ) - DEN-5963 worked on heat disinfect scripts - DEN-5963 worked on heat disinfect script and supporting scripts - DEN-7144: Implementation [Simulator/Testing] ( 1 ) - DEN-7043: (BUGFIX) Correct uf pre-treatment msgid in ui_proxy - DEN-7144: Fixed Simulator Alarm plugin - DEN-7144: preTx: Implementation [Simulator/Testing] ( 1 ) ### [0.8.4] - 2021-02-22 - DEN-7041: Fixed old treatment states, msg ids. ### [0.8.3] - 2021-02-21 - Removed duplicate version.py - DEN-7041: Added changes necessary for testsuites to pass 100% - (origin/DEN-6593_Sprint_37, DEN-6593_Sprint_37) DEN-6593: Removed unused test - (origin/DEN-6363_Sprint_36, DEN-6363_Sprint_36) DEN-6838: Try to login only once by default, allowing API user to set resend=True - DEN-6838: Disabled auto-resend when logging into the HD - DEN-6838: Updated when ACKs are sent. Added blood flow and fw controller test scripts - (origin/DIAL-62-alarm-ids-file-not-found-error) DIAL-62: Added alarm ids txt to package data - DEN-6593, DIAL-59: Removed unneeded send ack calls. - DEN-5980 added set duty cycle command function for RO pump - Removed drain pump's RPM set - fixed the drain pump fixed RPM function - Updated version.py - (origin/master, origin/HEAD, master) Temporarily fixed the Priming messaging issue - DEN-6593: Restored priming simulated progress behavior - DEN-6593, DIAL-59: Dialin will send ACK if seq num is < 0. Added incrementing sequence number for unsolicited outgoing messages. - (origin/DEN-5830_AlarmDesign) DEN-5838: Code Review 0 - DEN-6363: Added set alarm cleared condition to hd simulator alarms - DEN-5838: Code Review 0 - (origin/DEN-5674-hd-alarm-design-3-of-4) DEN-5674: fixed merge conflicts. - DEN-6363, DIAL-51: Disabling resending of messages by default. - (origin/DEN-6193_Sprint_35, DEN-6193_Sprint_35) DEN-6193: Updated docstrings, .gitignore, and removed duplicate utility function. - DEN-5674: Fixed function header parameter comment. - (origin/DEN-3504-dg-dialysate-composition-1-of-2) DEN-3504: Fixed cd2 sensor update, update cp1 and cp2 speed name - (origin/DIAL-23-parse-common-definitions) DIAL-23: Added semi-auto generation for alarm ids - DEN-5674: Addressed code review feedback. ### [0.8.2] - 2020-12-30 - DEN-6018: Deleted unneeded test script - DIAL-49, DIAL-52: Handling invalid denali message gracefully, ensure sleep of 1ms before re-checking receive buffer. - DEN-6018, DIAL-49, DIAL-52: Added to logging test, updated logger, handle malformed denali messages that don't include a payload length - DEN-6018, DEN-4864: Ensuring ACK is sent back when required.Clearing alarms when starting hd simulator. - DEN-5802: Fixed _publish decorator typo - DIAL-54, DEN-5802: Added flag to disable/enable metadata in the logger - DEN-6018: Added unit tests, added defaults when settings treatment parameters. - DEN-6018: Fixed squish migration conflicts after merge - DEN-5833: Implementation- added the message id 80 for pTx uf adj rsp. - DEN-3421 fixed temperature sensors unit test python script - DEN-5833: Implementation- Added API for the message 63 : Alarm Condition Cleared - DEN-3504: Fixed spelling - DEN-3504: Added concentrate pump measured speed and broadcast interval override commands - DEN-3421 updated the documentation of the code - DEN-3421 addressed a code review comment - DEN-3421 addressed code reivew comments - DEN-5833: Implementation- Added AlarmFlags - DIAL-31: DG Software reset will not require response - Fixed valves state override message - Fixed incorrect message name for DG pressure override - DEN-5802: Continued migrating to denali can messenger. - DEN-5833: Implementation- Added Alarms Priority enums in the common folder. - Updated the CANBus test function test_can0 to be able to be used out side of the SquishQt (ex. Simulator) and moved the common portion in the utils.py - DEN-5638: Continued squish migration, refactored hd_simulator.py - DEN-3421 updated the drivers.Merged develop into the branch - DEN-3504: Added tare option to drain command - DEN-5739: Implementation- Fixed the API bug when implementing the request. - DEN-5741 Integration Testing- Added Heparin Data/Response messages API - DEN-5638: Removed globals import test from test_squish - DEN-4640: Fixed DPo publish interval override command. - DEN-3421 merged develop into this branch - DEN-5638, DIAL-16: Added ability to switch reservoirs. - DEN-3421 merged master into the branch - DEN-3504: Use Dialin Enum - DEN-5638: Fixed incorrect channel for ui set treatment parameters handler.Cleaned up ui_proxy.py - DEN-4640: Added handling of Dialin requests to get, erase calibration data. - DEN-3421 worked on the drivers scripts - DEN-3504: Combine cmd turn on/off concentrate pumps - DEN-5638: Added ui proxy test script, remove print statements, refactoring - DEN-5638: Removed print statements, fixed typo - DEN-5638: Continued refactoring - DEN-5638: Began migrating squish to ui folder - DEN-5637: Renamed MsgFldPositions to MsgFieldPositions - Added space between functions - Updated version.py - Updated version ### [0.8.1] - 2020-11-10 - DEN-3504: Removed dg operation mode request - DEN-4640: Clear alarms if status reports no top alarm.Add handling of calibration data broadcast msg. - DEN-4640: fixed typos for new pump home commands. - DEN-4640: Added command to clear all alarms. - DEN-4640: Updated msg list.Fixed alarms class to reference correct alarm IDs. - DEN-3504: Added conversion util to dg - DEN-3504: Fixed out of sync message id - Den-4695: Integration Testing- renamed some variables and methods regarding the pressures adjustment to be consistent. - DEN-5518: Fixed remaining dialysate_inlet_pump function names. - DEN-4640: Fixed alarm IDs enum. - DEN-4640: Added new alarm IDs. - DEN-5518: Fixed unresolved message id references in hd and ui folders. - DEN-3504: Fixed out of sync message ids - DIAL-47: Improved consistency of function names. - DEN-5518: Fixed invalid message IDs in hd simulator, refactoring- Fixed missing return in version.py - Ensure env is activate before running flake8 - DEN-4640: Fixed msg ID names. - DEN-4606: Added end-treatment response - DEN-4695: Integration Testing- Added response message API - DEN-5518, DIAL-46: Fixed deprecated message ids in alarms class - DEN-5518: Fixed blood flow message ids.Documentation fixes. - DEN-3504: Added DG operation mode change request command - DEN-5518: Fixed dialysate inlet flow invalid message ids - DEN-5518: Fixed rest of dialysate inlet flow invalid mesage ids - DEN-5518: Fixed dialysate inlet flow invalid message ids - DEN-5342: Code Review 0- Removed the class variables and used the one defined int the common. - DEN-5518: Ensuring message IDs are all unique - DEN-5518, DIAL-42: Created DialinEnum, added has_value - DEN-4640: sync message IDs w/ firmware. - DEN-3504: Added concentrate pumps function and conductivity cd1, cd2 sensors - DEN-4640: Addressed code review feedback. - DEN-5518, DIAL-45, HD Software reset request will not require response. - DEN-5340 Code Coverage [100%]- Modified the Pressure/Occlusion message to have new structure (last 3 of 5 fields changed to U32 from F32) - DEN-5339: Integration Testing- Fixing tst_Treatment_Adjustment_Ultrafiltration - DEN-5339: Integration Testing- First implementation - DEN-4640: Added support for single treatment parameter value setting.Other updates to treatment parameter functionality. - DIAL-32: Updated requirements generator script - DIAL-43: Made hd blood flow command names consistent. - DEN-4641: Changed data type for occlusion pressures from float to integer and units from mmHg to unitless. ### [0.8.0] - 2020-10-21 - DEN-5329: Fixed msg defs conflict - DEN-5329: Updated hd simulator to show realistic priming screen behavior - DEN-4308 removed try and except clauses from the publish function - DIAL-37: Using struct.pack to convert from integer to bytearray instead of unhexlify. - DIAL-32: Updated scripts to generate user needs - DEN-5136, DEN-4787: Renamed ui/hd_proxy.py to hd_simulator, updated alarms simulator - DEN-5053: Added HD and DG s/w reset request commands. - DEN-4308 added air trap valve status to the publish function - DEN-5136: Updated create, confirm, priming, begin workflow and alarms test code - DEN-5053: Added HD class for Air Trap module. - DEN-4856: Added HD simulator functions to listen for treatment start messages. - DEN-4856: Added capability to simulate priming in the UI - DEN-4169: Use common msg id and address code review - DEN-4169: Added alarm module to dg - DEN-4589: Created version.py symlink, fixed setup.py import - DEN-4589: Fixed drain pump bug, added dg get_fpga_version() - DEN-4589: Removed pkg-resources dependency - DEN-4589: Version fix - DEN-4589: Added missing get_fpga_version to ui proxy, adjusted treatment parameters response ordering. ### [0.7.0] - 2020-08-27 - DIAL-29: Added DG temperature sensors enum - DEN-4344, DIAL-9: Documentation fixes - Removed empty file - DIAL-28, DEN-4589, DEN-4344: Ensure unit tests don't mix with hardware reliant tests, finalized import test - DIAL-28, DEN-4589, DEN-4344: Simplified dialin import system - DEN-4322: Removed alignment per code review - DEN-4589 Fixed HD import issue and reworked version.py to work outside of git repos. - DEN-4322: Removed RO rejection ratio override command - Updated hd simulator test - DEN-4322: Updated Dialin API for DG RO rejection ratio - Added canbus convenience functions - Fixed ro pump msg ids, added fpga version to dg and hd versions, added test imports to unit tests, cleaned up get alarm states - Added common, improved ui folder structure - Updated hd_simulator, hd buttons, and test hd simulator - DEN-4436: Denali Investigate and Fix the new VM issues - Updated changelog ### [0.6.0] - 2020-08-06 #### Added - Added constraints to HD documentation - `dialin.dg.conductivity_sensors` - Conductivity sensor override command - Conductivity values get function - Conductivity sensor data broadcast interval override command - Rejection reasons to `hd.ui_proxy`, accessible via `get_reject_reasons()` - `dialin.utils.base` - Added convenience function to simplify lookups of a group of constants (e.g. message ids, alarm ids, etc.) - Added `create_logger` function to simplify logging in dialin scripts - Added `_LogManager` class - Integration with bamboo unit tests runner - Automatically generated file headers #### Changed - Converted all print statements to log messages - Dialin internal logging levels `["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "CAN_ONLY", "PRINT_ONLY"]` #### Fixed - Removed unneeded imports - Added Logger type information - DG RO Pump message ID definitions ### [0.5.0] - 2020-07-20 #### Added - The following alarms have been added: - `ALARM_ID_VALVE_CONTROL_FAILURE = 51` - `ALARM_ID_BLOOD_PUMP_FLOW_VS_MOTOR_SPEED_CHECK = 52` - `ALARM_ID_DIAL_IN_PUMP_FLOW_VS_MOTOR_SPEED_CHECK = 53` - `ALARM_ID_DIAL_OUT_PUMP_FLOW_VS_MOTOR_SPEED_CHECK = 54` - `ALARM_ID_BLOOD_PUMP_MOTOR_SPEED_CHECK = 55` - `ALARM_ID_DIAL_IN_PUMP_MOTOR_SPEED_CHECK = 56` - `ALARM_ID_DIAL_OUT_PUMP_MOTOR_SPEED_CHECK = 57` - `ALARM_ID_BLOOD_PUMP_ROTOR_SPEED_TOO_HIGH = 58` - `ALARM_ID_INLET_WATER_TEMPERATURE_OUT_OF_RANGE = 59` #### Fixed - Fixed base class subclassing and base class initialization of `utils.base._AbstractSubSystem` in - `dialin.dg.hd_proxy` - `dialin.dg.pressures` - `dialin.dg.reservoirs` - `dialin.dg.ro_pump` - `dialin.hd.buttons` - `dialin.hd` - `dialin.hd.rtc` - `dialin.hd.treatment` - `dialin.hd.ui_proxy` - `dialin.hd.watchdog` - Fixed code styling in - `dialin.dialysate_generator` - `dialin.dg.drain_pump` - `dialin.base` - Fixed inaccurate initialization function docstrings ### [0.4.1] - 2020-07-20 #### Fixed - Fixed invalid DG operation mode handler function registration ### [0.4.0] - 2020-07-20 #### Added - Migration of squishapi to dialin - `dialin.squish.crc` - `dialin.squish.denaliMessages` - `dialin.squish.globals` - `dialin.squish.messageBuilder` - `dialin.squish.unittests` - `dialin.squish.utils` - Test script to generate requirements - Unit test to sort the valve state dictionaries - Convenience script to build dialin wheel file and install it to a virtual environment #### Fixed - DG valves test to be compatible with valve state dictionary format - Improved PEP8 compliance - Method spacing: (1 line) - Function spacing: (2 lines) - Missing copyright headers ### [0.3.0] - 2020-07-15 #### Added - DG Dialysate Temperature monitoring - `dg.temperature_sensors` #### Fixed - PEP8 compliance of `dg.heaters` - Integration test for `dg.heaters` ### [0.2.0] - 2020-06-30 #### Added - Ability to attach / detach multiple observers - `dialin.base.AbstractObserver` class - `dialin.base._AbstractSubSystem` class - `dialin.base._publish` decorator - Getter functions for all publicly accessible variables - Branch and commit hash to docs - Data publishing from all subsystem classes (using the `@_publish` decorator) - Demo tests - Alarm simulation - `CAN-ONLY` logging with candump styled output #### Changed - Parent class for all submodules - Dialin version configuration and integration with sphinx, pip - Documentation now generated by sphinx instead of Doxygen - Handler functions are private - README #### Removed - Doxygen configuration #### Fixed - DG valves rate test - Alarms initialization - Valves bit masking - Documentation cleanup - Logging isolation - Ultrafiltration test script - Copyrights ### [0.1.0] - 2020-05-28 #### Added - Submodules: hd, dg, utils, and protocols - Setup dialin as a python package - Internal API Logging - Copyright headers - Unit test to import classes - HD demo test script - HD / DG integration tests #### Changed - Ensure PEP8 Compliance - Ensure snake case is used for all variables and functions - README - HD / UI messaging - Split up HD / DG subclasses into separate files #### Removed - Softlinks - Deprecated code #### Fixed - Doxygen output