mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-03 12:14:18 +01:00
fix warnings error for numpy in cooldown step
This commit is contained in:
parent
c3d6060a64
commit
4c70ef6fd2
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.4.4"
|
||||
__version__ = "4.4.5"
|
||||
__codename__ = "Yeast Starter"
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue