Skip to content
Snippets Groups Projects
Commit 574c2cc0 authored by florent's avatar florent
Browse files

Do not use sophisticated setter and getter for the moment

   * src/dynamic_graph/signal_base.py.
parent f20dbe37
No related branches found
No related tags found
No related merge requests found
...@@ -29,17 +29,15 @@ class SignalBase: ...@@ -29,17 +29,15 @@ class SignalBase:
""" """
return wrap.signalBaseGetTime(self.object) return wrap.signalBaseGetTime(self.object)
@property def get_value(self) :
def value(self) :
""" """
Read the value of a signal Read the value of a signal
""" """
return wrap.signal_base_get_value(self.object) return wrap.signal_base_get_value(self.object)
@value.setter def set_value(self, val) :
def value(self) :
""" """
Set the signal as a constant signal with given value. Set the signal as a constant signal with given value.
If the signal is plugged, it will be unplugged If the signal is plugged, it will be unplugged
""" """
return wrap.signal_base_set_value(self.object, value) return wrap.signal_base_set_value(self.object, val)
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