Skip to content

Commit 543dcd4

Browse files
committed
[property.py] Fix Tuple Append Error
Because dtype always inferred as string.
1 parent 957dcda commit 543dcd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

odml/property.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ def append(self, obj, strict=True):
725725
dtypes.infer_dtype(new_value[0]) != self.dtype:
726726

727727
type_check = dtypes.infer_dtype(new_value[0])
728-
if not (type_check == "string" and self.dtype in dtypes.special_dtypes):
728+
if not (type_check == "string" and self.dtype in dtypes.special_dtypes) \
729+
and not self.dtype.endswith("-tuple"):
729730
msg = "odml.Property.append: passed value data type found "
730731
msg += "(\"%s\") does not match expected dtype \"%s\"!" % (type_check,
731732
self._dtype)

0 commit comments

Comments
 (0)