From 89a6a07f5bee2c1b725c1ce6e762db72507a1478 Mon Sep 17 00:00:00 2001 From: Mansard <nmansard@laas.fr> Date: Wed, 16 Feb 2011 12:19:02 +0100 Subject: [PATCH] Corrected a syntax error in an exception raising + remove the shortcut .m from the class basic definition. --- src/dynamic_graph/signal_base.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/dynamic_graph/signal_base.py b/src/dynamic_graph/signal_base.py index fade3a9..dc3e144 100644 --- a/src/dynamic_graph/signal_base.py +++ b/src/dynamic_graph/signal_base.py @@ -23,7 +23,7 @@ def stringToTuple (vector) : # check size if len(vector) != size: raise TypeError('displayed size ' + - size + ' of vector does not fit actual size: ' + str(size) + ' of vector does not fit actual size: ' + str(len(vector))) res = map(float, vector) return tuple (res) @@ -238,14 +238,4 @@ class SignalBase (object) : """ return(wrap.signal_base_display_dependencies(self.obj,iter)) - # Script short-cuts: don't use this syntaxt in python coding, - # use it for debuging online only! - @property - def m(self): - """ - m stands for matlab: display the content of the - signal with matlab style, for debuging and transfert. - matlab-style to be coded ... - """ - print(self.value) -- GitLab