Unverified Commit 12c8e4ce authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #74 from nim65s/devel

[Python] remove references to matlab, fix #73
parents 54e8fbd0 7de54261
Pipeline #13342 passed with stage
in 10 minutes and 3 seconds
...@@ -14,7 +14,6 @@ from __future__ import print_function ...@@ -14,7 +14,6 @@ from __future__ import print_function
import sys import sys
from .entity import Entity from .entity import Entity
from .matlab import matlab
from .signal_base import SignalBase from .signal_base import SignalBase
...@@ -39,7 +38,7 @@ class PrettySignalPrint: ...@@ -39,7 +38,7 @@ class PrettySignalPrint:
self.sig = sig self.sig = sig
def __str__(self): def __str__(self):
return self.sig.name + " = " + str(matlab(self.sig.value)) return self.sig.name + " = " + str(self.sig.value)
def __repr__(self): def __repr__(self):
return str(self) return str(self)
...@@ -59,12 +58,10 @@ def sigMatPrint(sig): ...@@ -59,12 +58,10 @@ def sigMatPrint(sig):
setattr(SignalBase, 'm', property(PrettySignalPrint)) setattr(SignalBase, 'm', property(PrettySignalPrint))
# print('Pretty matlab print set')
# Enable the same as 'm', but directly on the signal object. # Enable the same as 'm', but directly on the signal object.
def sigRepr(self): def sigRepr(self):
return self.name + ' = ' + str(matlab(self.value)) return self.name + ' = ' + str(self.value)
def sigCall(sig, iter): def sigCall(sig, iter):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment