We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f7142 commit 0d69b54Copy full SHA for 0d69b54
1 file changed
odml/property.py
@@ -576,6 +576,17 @@ def val_cardinality(self, new_value):
576
msg = "Can only assign single int or int-tuples of the format '(min, max)'"
577
raise ValueError(msg)
578
579
+ def values_set_cardinality(self, min_val=None, max_val=None):
580
+ """
581
+ Sets the values cardinality of a Property.
582
+
583
+ :param min_val: Required minimal number of values elements. None denotes
584
+ no restrictions on values elements minimum. Default is None.
585
+ :param max_val: Allowed maximal number of values elements. None denotes
586
+ no restrictions on values elements maximum. Default is None.
587
588
+ self.val_cardinality = (min_val, max_val)
589
590
def remove(self, value):
591
"""
592
Remove a value from this property. Only the first encountered
0 commit comments