Skip to content
Snippets Groups Projects
Commit 083612ca authored by florent's avatar florent
Browse files

Implement tupleToString function

	  * src/dynamic_graph/signal_base.py.
parent 43f00307
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,12 @@ def stringToTuple(vector): ...@@ -26,6 +26,12 @@ def stringToTuple(vector):
res.append(float(a.group(i))) res.append(float(a.group(i)))
return tuple(res) return tuple(res)
def tupleToString(vector):
string = '[%d]('%len(vector)
for x in vector[:-1]:
string += '%f,'%x
string += '%f)'%vector[-1]
return string
class SignalBase (object) : class SignalBase (object) :
""" """
......
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