We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3a5b0 commit 8156605Copy full SHA for 8156605
odml/tools/dict_parser.py
@@ -84,10 +84,9 @@ def get_properties(props_list):
84
tag = getattr(prop, attr)
85
if isinstance(tag, tuple):
86
prop_dict[attr] = list(tag)
87
- elif (tag == []) or tag: # Even if 'value' is empty, allow '[]'
88
- # Custom odML tuples require special handling
89
- # for save loading from file.
90
- if attr == "value" and prop.dtype and \
+ elif (tag == []) or tag: # Even if 'values' is empty, allow '[]'
+ # Custom odML tuples require special handling.
+ if attr == "values" and prop.dtype and \
91
prop.dtype.endswith("-tuple") and len(prop.values) > 0:
92
prop_dict["value"] = "(%s)" % ";".join(prop.values[0])
93
else:
0 commit comments