Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
7de54261
Commit
7de54261
authored
Mar 03, 2021
by
Guilhem Saurel
Browse files
[Python] remove references to matlab, fix #73
parent
54e8fbd0
Pipeline
#13319
passed with stage
in 3 minutes and 42 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/dynamic_graph/script_shortcuts.py
View file @
7de54261
...
...
@@ -14,7 +14,6 @@ from __future__ import print_function
import
sys
from
.entity
import
Entity
from
.matlab
import
matlab
from
.signal_base
import
SignalBase
...
...
@@ -39,7 +38,7 @@ class PrettySignalPrint:
self
.
sig
=
sig
def
__str__
(
self
):
return
self
.
sig
.
name
+
" = "
+
str
(
matlab
(
self
.
sig
.
value
)
)
return
self
.
sig
.
name
+
" = "
+
str
(
self
.
sig
.
value
)
def
__repr__
(
self
):
return
str
(
self
)
...
...
@@ -59,12 +58,10 @@ def sigMatPrint(sig):
setattr
(
SignalBase
,
'm'
,
property
(
PrettySignalPrint
))
# print('Pretty matlab print set')
# Enable the same as 'm', but directly on the signal object.
def
sigRepr
(
self
):
return
self
.
name
+
' = '
+
str
(
matlab
(
self
.
value
)
)
return
self
.
name
+
' = '
+
str
(
self
.
value
)
def
sigCall
(
sig
,
iter
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment