From 55e9af2ff4454ae9375b6a4ad50e70795af5fb90 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 23 Jul 2024 15:45:25 +0200 Subject: Fixing --no-window option. --- src/argaze/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/argaze/__main__.py b/src/argaze/__main__.py index a88e3c5..c65d6e5 100644 --- a/src/argaze/__main__.py +++ b/src/argaze/__main__.py @@ -24,6 +24,7 @@ import contextlib import time import os import stat +import math from . import load from .DataFeatures import SharedObjectBusy @@ -251,7 +252,8 @@ def load_context(args): if issubclass(type(context.pipeline), ArCamera): watch_time, watch_freq = context.pipeline.execution_info('watch') - suffix += f' | Watch {int(watch_time)}ms at {watch_freq}Hz' + + suffix += f' | Watch {int(watch_time) if not math.isnan(watch_time) else 0}ms at {watch_freq if not math.isnan(watch_freq) else 0}Hz' # Clear old longer print suffix += ' ' -- cgit v1.1