diff options
author | Théo de la Hogue | 2024-07-23 15:45:25 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-07-23 15:45:25 +0200 |
commit | 55e9af2ff4454ae9375b6a4ad50e70795af5fb90 (patch) | |
tree | d7f16b91db4c7a4fcb6747b368a56081edfbee9e /src | |
parent | e4b2d284371661a0b286cdebee430f92131313e1 (diff) | |
download | argaze-55e9af2ff4454ae9375b6a4ad50e70795af5fb90.zip argaze-55e9af2ff4454ae9375b6a4ad50e70795af5fb90.tar.gz argaze-55e9af2ff4454ae9375b6a4ad50e70795af5fb90.tar.bz2 argaze-55e9af2ff4454ae9375b6a4ad50e70795af5fb90.tar.xz |
Fixing --no-window option.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/__main__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 += ' ' |