Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test: use byte constants instead of encoding on the fly. | Diego Elio Pettenò | 2017-12-28 | 1 | -2/+2 |
| | |||||
* | tests: fix OneTouch tests to use Python's own mock, and leverage absl-py. | Diego Elio Pettenò | 2017-12-28 | 2 | -53/+26 |
| | | | | | | Since I've increased the minimum Python version to 3.4, mock is now available within Python. And since I already used absl-py parameterized for test_common, make use of it to avoid boilerplate. | ||||
* | test_common: use absl-py to increase coverage, and simplify. | Diego Elio Pettenò | 2017-12-28 | 1 | -8/+23 |
| | | | | This ensures the tests run independently instead of failing at the first mistake. | ||||
* | accucheck_reports: fix bug for mg/dL native meters. | Diego Elio Pettenò | 2017-12-28 | 1 | -10/+2 |
| | | | | | This was mixing up the units in the conversion. While fixing the bug, remove the confusing two-parameter form of convert_glucose_unit. | ||||
* | Use Python3 Enum class for glucose units. | Diego Elio Pettenò | 2017-12-28 | 1 | -7/+7 |
| | | | | This makes the code more idiomatic and less brittle. | ||||
* | LifeScan devices: move lifescan_common to the support directory. | Diego Elio Pettenò | 2017-01-16 | 2 | -7/+7 |
| | | | | | This makes it easier to figure out which files represent drivers, and which ones are per-vendor support modules. | ||||
* | Move the InvalidChecksum exception to the base exceptions module. | Diego Elio Pettenò | 2016-03-02 | 2 | -2/+2 |
| | | | | | Most glucometers have *some* sort of checksum, so there is no reason to implement this on a per-driver basis. | ||||
* | otultraeasy: move the crc function to lifescan_common. | Diego Elio Pettenò | 2016-02-13 | 1 | -2/+2 |
| | | | | | The same CRC-CCITT function is used in Verio 2015 devices, so prepare to reuse it by moving it to the common module. | ||||
* | otultra2: move checksum function within otultra2 driver. | Diego Elio Pettenò | 2014-01-29 | 2 | -28/+8 |
| | | | | | The function is not shared with the Ultra Easy and likely not with other devices either. | ||||
* | Initial support for OneTouch Ultra Easy glucometers. | Diego Elio Pettenò | 2014-01-29 | 1 | -0/+60 |
| | | | | | The driver is fully functional but requires proper documentation and testing. | ||||
* | Fix style for tests. | Diego Elio Pettenò | 2013-09-29 | 3 | -68/+60 |
| | |||||
* | test_otultra2: factor out setting of returned serial string. | Diego Elio Pettenò | 2013-08-10 | 1 | -9/+9 |
| | |||||
* | Relicense everything under MIT license. | Diego Elio Pettenò | 2013-08-03 | 3 | -3/+3 |
| | | | | | There is no reason for me to use GPLv3 now that I'm not using the CRC32-Sick code, so I'll go with the most liberal license out there. | ||||
* | Implement the correct checksum algorithm. | Diego Elio Pettenò | 2013-08-03 | 2 | -4/+5 |
| | | | | | | | Unlike what I though, OneTouch2 does not use CRC32 Sick algorithm, but a very stupid full 16-bit modulo sum of the bytes in the reply. This is very simple and does not require GPLv3 code at all. | ||||
* | Add support for checksum verification for the otultra2 driver. | Diego Elio Pettenò | 2013-08-03 | 2 | -4/+48 |
| | | | | | | | This introduced some changes in the Exception class to simplify the code, and at the same time it adds a module for multiple lifescan drivers to share code (multiple OneTouch protocols share the same checksum for instance). | ||||
* | Update function names to follow PEP8. | Diego Elio Pettenò | 2013-08-03 | 2 | -12/+12 |
| | |||||
* | Add utf-8 encoding specification to all files. | Diego Elio Pettenò | 2013-08-03 | 2 | -0/+2 |
| | |||||
* | Add tests for the glucose unit conversion. | Diego Elio Pettenò | 2013-08-03 | 1 | -0/+53 |
| | |||||
* | test_otultra2: add header. | Diego Elio Pettenò | 2013-08-03 | 1 | -0/+7 |
| | |||||
* | Initial import of the raw data. | Diego Elio Pettenò | 2013-08-03 | 1 | -0/+48 |