citrine.informatics.constraints.integer_range_constraint module

class citrine.informatics.constraints.integer_range_constraint.IntegerRangeConstraint(*, descriptor_key: str, lower_bound: int | None = None, upper_bound: int | None = None)

Bases: Serializable[IntegerRangeConstraint], Constraint

[ALPHA] Represents an inequality constraint on an integer-valued material attribute.

Warning: IntegerRangeConstraints are not fully supported by the Citrine Platform web interface and may cause unexpected issues until resolved.

Parameters:
  • descriptor_key (str) – the key corresponding to a descriptor

  • lower_bound (int) – the minimum value in the range

  • upper_bound (int) – the maximum value in the range

  • lower_inclusive (bool) – if True, will include the lower bound value in the range (default: true)

  • upper_inclusive (bool) – if True, will include the max value in the range (default: true)

classmethod build(data: dict) Self

Build an instance of this object from given data.

dump() dict

Dump this instance.

classmethod get_type(data)

Return the subtype.

descriptor_key = None
lower_bound = None
typ = 'IntegerRange'
upper_bound = None