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 b5d8d09 commit e22f725Copy full SHA for e22f725
odml/validation.py
@@ -431,6 +431,9 @@ def property_values_string_check(prop):
431
432
res_dtype = max(set(val_dtypes), key=val_dtypes.count)
433
434
+ if len(set(val_dtypes)) > 1:
435
+ res_dtype = "string"
436
+
437
if res_dtype != "string":
438
msg = 'Dtype of property "%s" currently is "string", but might fit dtype "%s"!' % (prop.name, res_dtype)
439
yield ValidationError(prop, msg, LABEL_WARNING)
0 commit comments