Skip to content

Commit

Permalink
Do not print pressures when checking
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 8, 2023
1 parent 416cf3f commit 16fd686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lvmscp/ln2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 16fd686

Please sign in to comment.