Fixed boolean value displayed in debug variable panel
authorLaurent Bessard
Thu, 06 Dec 2012 16:19:06 +0100
changeset 895 f5a28011d551
parent 894 a4919f228924
child 896 899ca8809528
Fixed boolean value displayed in debug variable panel
controls/DebugVariablePanel.py
--- a/controls/DebugVariablePanel.py	Thu Dec 06 16:10:26 2012 +0100
+++ b/controls/DebugVariablePanel.py	Thu Dec 06 16:19:06 2012 +0100
@@ -97,8 +97,8 @@
     
     def NewValue(self, tick, value, forced=False):
         if self.IsNumVariable():
-            value = {True:1., False:0.}.get(value, float(value))
-            self.Data = numpy.append(self.Data, [[float(tick), value]], axis=0)
+            num_value = {True:1., False:0.}.get(value, float(value))
+            self.Data = numpy.append(self.Data, [[float(tick), num_value]], axis=0)
             self.Parent.HasNewData = True
         DebugDataConsumer.NewValue(self, tick, value, forced)