From 0ca052a5609ce54001390752f16117b68b4d2878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 16 Jan 2017 22:22:14 +0000 Subject: Update copyrights, cleanup whitespace where needed. --- glucometer.py | 2 +- glucometerutils/drivers/accuchek_reports.py | 4 ++-- glucometerutils/drivers/fsoptium.py | 4 ++-- glucometerutils/drivers/fsprecisionneo.py | 8 ++++++-- glucometerutils/drivers/otultra2.py | 2 +- glucometerutils/drivers/otultraeasy.py | 2 +- glucometerutils/drivers/otverio2015.py | 6 +++--- glucometerutils/support/freestyle.py | 5 +++++ glucometerutils/support/lifescan.py | 2 +- 9 files changed, 22 insertions(+), 13 deletions(-) diff --git a/glucometer.py b/glucometer.py index 148daff..3e6105b 100755 --- a/glucometer.py +++ b/glucometer.py @@ -4,7 +4,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2013, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò' __license__ = 'MIT' import argparse diff --git a/glucometerutils/drivers/accuchek_reports.py b/glucometerutils/drivers/accuchek_reports.py index f200471..a678736 100644 --- a/glucometerutils/drivers/accuchek_reports.py +++ b/glucometerutils/drivers/accuchek_reports.py @@ -114,12 +114,12 @@ class Device(object): return common.BEFORE_MEAL else: return common.NO_MEAL - + def get_readings(self): for record in self._get_records_reader(): if record[_RESULT_CSV_KEY] is None: continue - + yield common.Reading( self._extract_datetime(record), common.convert_glucose_unit(float(record[_RESULT_CSV_KEY]), diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py index 0b20946..fd4c791 100644 --- a/glucometerutils/drivers/fsoptium.py +++ b/glucometerutils/drivers/fsoptium.py @@ -3,12 +3,12 @@ Further information on the device protocol can be found at -https://github.com/Flameeyes/glucometer-protocols/blob/master/abbott/freestyle-optium.md +https://flameeyes.github.io/glucometer-protocols/abbott/freestyle-optium """ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2016, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2016-2017, Diego Elio Pettenò' __license__ = 'MIT' import datetime diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py index 9e9cea1..c82efda 100644 --- a/glucometerutils/drivers/fsprecisionneo.py +++ b/glucometerutils/drivers/fsprecisionneo.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- -"""Driver for FreeStyle Precision Neo devices. -""" +"""Driver for FreeStyle Precision Neo devices.""" + +__author__ = 'Diego Elio Pettenò' +__email__ = 'flameeyes@flameeyes.eu' +__copyright__ = 'Copyright © 2017, Diego Elio Pettenò' +__license__ = 'MIT' import collections import datetime diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py index c87d270..1c8ee10 100644 --- a/glucometerutils/drivers/otultra2.py +++ b/glucometerutils/drivers/otultra2.py @@ -3,7 +3,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2013, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò' __license__ = 'MIT' import datetime diff --git a/glucometerutils/drivers/otultraeasy.py b/glucometerutils/drivers/otultraeasy.py index d3d2d67..50a6020 100644 --- a/glucometerutils/drivers/otultraeasy.py +++ b/glucometerutils/drivers/otultraeasy.py @@ -3,7 +3,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2014, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2014-2017, Diego Elio Pettenò' __license__ = 'MIT' import array diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py index b5e529d..bcb76d6 100644 --- a/glucometerutils/drivers/otverio2015.py +++ b/glucometerutils/drivers/otverio2015.py @@ -3,12 +3,12 @@ Further information on the device protocol can be found at -https://github.com/Flameeyes/glucometer-protocols/blob/master/lifescan/onetouch-verio-2015.md +https://flameeyes.github.io/glucometer-protocols/lifescan/onetouch-verio-2015 """ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2016, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2016-2017, Diego Elio Pettenò' __license__ = 'MIT' import datetime @@ -197,7 +197,7 @@ class Device(object): if response[0:2] != b'\x04\06': raise lifescan.MalformedCommand( 'invalid response, expected 04 06, received %02x %02x' % ( - response[0], response[1])) + response[0], response[1])) def _get_reading_count(self): response = self._send_message(_READ_RECORD_COUNT_REQUEST, 3) diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index bef695e..f3e7575 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -5,6 +5,11 @@ https://flameeyes.github.io/glucometer-protocols/abbott/shared-hid-protocol.html """ +__author__ = 'Diego Elio Pettenò' +__email__ = 'flameeyes@flameeyes.eu' +__copyright__ = 'Copyright © 2017, Diego Elio Pettenò' +__license__ = 'MIT' + import csv import datetime import re diff --git a/glucometerutils/support/lifescan.py b/glucometerutils/support/lifescan.py index 1f8234d..353db4d 100644 --- a/glucometerutils/support/lifescan.py +++ b/glucometerutils/support/lifescan.py @@ -3,7 +3,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2013, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò' __license__ = 'MIT' from glucometerutils import exceptions -- cgit v1.2.3