From 909bc58e326e1d281a24472bdfc24e6559eef11d Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:14:55 +0200 Subject: [PATCH] adapt cooldown step to newer numpy function --- cbpi/__init__.py | 2 +- cbpi/extension/mashstep/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cbpi/__init__.py b/cbpi/__init__.py index 46e01d8..b38749b 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1,3 +1,3 @@ -__version__ = "4.4.3.a3" +__version__ = "4.4.3.a4" __codename__ = "Yeast Starter" diff --git a/cbpi/extension/mashstep/__init__.py b/cbpi/extension/mashstep/__init__.py index 3948abb..3ea7f0e 100644 --- a/cbpi/extension/mashstep/__init__.py +++ b/cbpi/extension/mashstep/__init__.py @@ -536,7 +536,7 @@ class CooldownStep(CBPiStep): if time.time() >= self.next_check: self.next_check = time.time() + (self.Interval * 60) - cooldown_model = np.poly1d(np.polyfit(self.temp_array, self.time_array, 2)) + cooldown_model = np.polynomial.polynomial.Polynomial.fit(self.temp_array, self.time_array, 2) target_time=cooldown_model(self.target_temp) target_timestring= datetime.fromtimestamp(target_time) self.summary="ECT: {}".format(target_timestring.strftime("%H:%M"))