fix warnings error for numpy in cooldown step

This commit is contained in:
avollkopf 2024-09-15 13:29:58 +02:00
parent c3d6060a64
commit 4c70ef6fd2
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.4.4"
__version__ = "4.4.5"
__codename__ = "Yeast Starter"

View file

@ -490,7 +490,10 @@ class CooldownStep(CBPiStep):
await self.push_update()
async def on_start(self):
warnings.simplefilter('ignore', np.RankWarning)
try:
warnings.simplefilter('ignore', np.exceptions.RankWarning)
except Exception as e:
logging.error(f"Numpy Error: {e}")
self.temp_array = []
self.time_array = []
self.kettle = self.get_kettle(self.props.get("Kettle", None))