Commit f55d8e53 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Store as numpy array rather than tuple, for consistency with

append/prepend process
parent 68326b19
......@@ -174,7 +174,7 @@ def convert_Process_Variable(val : str) -> Tuple[str, List[int]]:
if len(tokens) == 1 and \
tokens[0] in ('all', 'all_independent',
'all_except', 'all_independent_except'):
return tokens[0], []
return np.array((tokens[0], []), dtype=object)
if tokens[0] in ('independent', 'all_except', 'all_independent_except'):
ptype = tokens[0]
......@@ -182,7 +182,9 @@ def convert_Process_Variable(val : str) -> Tuple[str, List[int]]:
else:
ptype = 'vids'
return ptype, list(it.chain(*[util.parseMatlabRange(t) for t in tokens]))
vids = list(it.chain(*[util.parseMatlabRange(t) for t in tokens]))
return np.array((ptype, vids), dtype=object)
def convert_Process(
......
Markdown is supported
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