From 795292c3d2227bfdccd11a9c8970c6564b0b4d9e Mon Sep 17 00:00:00 2001 From: Jason Bruce Date: Wed, 24 Apr 2019 22:34:11 -0400 Subject: [PATCH] - fix bug in skipping data, slice must be an int --- lib/ovenWatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ovenWatcher.py b/lib/ovenWatcher.py index 1f6c1bf..7887dde 100644 --- a/lib/ovenWatcher.py +++ b/lib/ovenWatcher.py @@ -39,7 +39,7 @@ class OvenWatcher(threading.Thread): totalpts = len(self.last_log) if (totalpts <= maxpts): return self.last_log - every_nth = totalpts / (maxpts - 1) + every_nth = int(totalpts / (maxpts - 1)) return self.last_log[::every_nth] def record(self, profile):