From 657f198cdc93dd8121aff5e5dfb1448a64795bd6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 18 Jul 2015 10:26:47 +0200 Subject: [PATCH] gui: display '---' on failed number result --- artiq/gui/displays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gui/displays.py b/artiq/gui/displays.py index a29e42526..ca2407871 100644 --- a/artiq/gui/displays.py +++ b/artiq/gui/displays.py @@ -64,7 +64,7 @@ class NumberDisplay(dockarea.Dock): try: n = float(data[result]) except: - n = 0.0 + n = "---" self.number.display(n)