From 16fd6865a046daed0156b1a1a47929d7cb0e08b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 8 Aug 2023 22:56:46 +0000 Subject: [PATCH] Do not print pressures when checking --- python/lvmscp/ln2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lvmscp/ln2.py b/python/lvmscp/ln2.py index e04fbcf..e712111 100644 --- a/python/lvmscp/ln2.py +++ b/python/lvmscp/ln2.py @@ -260,7 +260,7 @@ async def purge( check_lockfile() if check_pressure: - pressures = numpy.array(list((await get_pressures()).values())) + pressures = numpy.array(list((await get_pressures(print=False)).values())) if numpy.any(numpy.isnan(pressures)) or numpy.any(pressures > PRESSURE_LIMIT): raise RuntimeError( "One or more cameras have pressures " @@ -350,7 +350,7 @@ async def fill( else: cameras_to_check = cameras - pressures = await get_pressures() + pressures = await get_pressures(print=False) for cam in cameras_to_check: pcam = pressures.get(cam, numpy.nan) if numpy.isnan(pcam) or pcam > PRESSURE_LIMIT: