Commit 45e684e7 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Allow iterable instead of only tuple in signal value affectation.

parent 22ce1edb
......@@ -6,6 +6,7 @@
import wrap
import entity
import re
import collections
def stringToTuple (vector) :
"""
......@@ -100,12 +101,12 @@ def objectToString(obj) :
- an integer,
- a boolean,
"""
if (isinstance(obj, tuple)) :
if (isinstance(obj, collections.Iterable)) :
# matrix or vector
if len(obj) is 0 :
return ""
else :
if (isinstance(obj[0], tuple)) :
if (isinstance(obj[0], collections.Iterable)) :
#matrix
return matrixToString(obj)
else :
......
Supports Markdown
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