Skip to content
Snippets Groups Projects
Commit f25027d0 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

[travis] Synchronize

parent b9d06a05
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ env: ...@@ -7,7 +7,7 @@ env:
global: global:
- secure: ECiHIh0aT5ml/MdKifvFIM2UpDWiPsJPEZpafLYM8U0VAPYThSfUe8JWhMsky8amOwm38akbSbr6C7iBKVpzjAqpgNdOdufO1RUZ6pUvtlVXiXTw2KlqPqbDVlD3QroVDhnX/rIRcg5ezEHAIb594uEaHdf8tlikhjdTc3aAgMA= - secure: ECiHIh0aT5ml/MdKifvFIM2UpDWiPsJPEZpafLYM8U0VAPYThSfUe8JWhMsky8amOwm38akbSbr6C7iBKVpzjAqpgNdOdufO1RUZ6pUvtlVXiXTw2KlqPqbDVlD3QroVDhnX/rIRcg5ezEHAIb594uEaHdf8tlikhjdTc3aAgMA=
- APT_DEPENDENCIES="doxygen doxygen-latex libboost-all-dev libeigen3-dev liblapack-dev libblas-dev gfortran python-dev python-sphinx" - APT_DEPENDENCIES="doxygen doxygen-latex libboost-all-dev libeigen3-dev liblapack-dev libblas-dev gfortran python-dev python-sphinx"
- GIT_DEPENDENCIES="stack-of-tasks/dynamic-graph" - GIT_DEPENDENCIES="proyan/dynamic-graph"
- LCOV_IGNORE_RULES="*unitTesting*" - LCOV_IGNORE_RULES="*unitTesting*"
allow_failures: allow_failures:
- compiler: clang - compiler: clang
......
Subproject commit d54df3bc05bc19f3aa56d7b7cb15fca48127861a Subproject commit 8e9b46446f92899025173f047b3950fcd21b89f4
...@@ -190,26 +190,26 @@ class SignalBase (object) : ...@@ -190,26 +190,26 @@ class SignalBase (object) :
def value(self) : def value(self) :
""" """
Setter and getter for the value of a signal Setter and getter for the value of a signal
Binds C++ SignalBase<int>::get() and set() methods. Values are passed Binds C++ SignalBase<int>::get() and set() methods. Values are passed
through string streams. through string streams.
A string is interpreted as respectively: A string is interpreted as respectively:
* a matrix (tuple of tuple) if string fits '[n,m]((x_11,x_12,...,x_1m),...,(x_n1,x_n2,...,x_nm))' format where n and m are integers, x_ij are floating point numbers, * a matrix (tuple of tuple) if string fits '[n,m]((x_11,x_12,...,x_1m),...,(x_n1,x_n2,...,x_nm))' format where n and m are integers, x_ij are floating point numbers,
* a tuple if string fits '[n](x_1, x_2, ..., x_n)' format, * a tuple if string fits '[n](x_1, x_2, ..., x_n)' format,
* an integer, * an integer,
* a floating point number. * a floating point number.
If string fits none of the above formats, no conversion is performed. If string fits none of the above formats, no conversion is performed.
For instance, is s binds a signal of type vector, For instance, is s binds a signal of type vector,
>>> s.value = (2.5, .1, 1e2) >>> s.value = (2.5, .1, 1e2)
will call SignalBase<int>::set("[3](2.5,0.1,100.0)") and will call SignalBase<int>::set("[3](2.5,0.1,100.0)") and
>>> s.value >>> s.value
(2.5, 0.1, 100.0) (2.5, 0.1, 100.0)
""" """
string = wrap.signal_base_get_value(self.obj) string = wrap.signal_base_get_value(self.obj)
return stringToObject(string) return stringToObject(string)
@value.setter @value.setter
def value(self, val) : def value(self, 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