Skip to content
Snippets Groups Projects
Commit 237cf2e3 authored by Nicolas Mansard's avatar Nicolas Mansard Committed by Nicolas Mansard
Browse files

Added shortcuts in the entity and signal-base api to help debuging during online script execution.

parent e960a8a5
No related branches found
No related tags found
No related merge requests found
...@@ -128,3 +128,8 @@ class Entity (object) : ...@@ -128,3 +128,8 @@ class Entity (object) :
except: except:
object.__getattr__(self, name) object.__getattr__(self, name)
# Script short-cuts: don't use this syntaxt in python coding,
# use it for debuging online only!
@property
def sigs(self):
self.displaySignals()
...@@ -223,3 +223,14 @@ class SignalBase (object) : ...@@ -223,3 +223,14 @@ class SignalBase (object) :
""" """
return wrap.signal_base_display(self.obj) return wrap.signal_base_display(self.obj)
# 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment