From 5bebe9e39fe03189352186c1676fa8eaafac6f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 31 Aug 2016 20:32:34 +0100 Subject: =?UTF-8?q?freestyle=5Foptium:=20ignore=20=CE=B2-ketones=20results?= =?UTF-8?q?=20from=20dumps.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since there is no way to expose non-glucose readings right now (I might work on that in the future), filter β-ketones results out from the dump. --- glucometerutils/drivers/freestyle_optium.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/glucometerutils/drivers/freestyle_optium.py b/glucometerutils/drivers/freestyle_optium.py index da6aa84..8a20657 100644 --- a/glucometerutils/drivers/freestyle_optium.py +++ b/glucometerutils/drivers/freestyle_optium.py @@ -29,12 +29,10 @@ _CLOCK_RE = re.compile( # over what the meter was supposed to read. Unlike the "Clock:" line, the months # of June and July are written in full, everything else is truncated to three # characters, so accept a space or 'e'/'y' at the end of the month name. Also, -# the time does *not* include seconds. Note that the G is likely going to -# indicate a blood-glucose reading rather than a blood-β-ketones. Unfortunately -# I don't have β-ketone strips to test. +# the time does *not* include seconds. _READING_RE = re.compile( r'^(?PHI |[0-9]{3}) (?P[A-Z][a-z]{2})[ ey] (?P[0-9]{2}) ' - r'(?P[0-9]{4}) (?P