aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/__main__.py4
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 += ' '