check_tuple_len_eq#

pybrops.core.error.error_value_python.check_tuple_len_eq(v, vname, vlen)[source]#

Check if a tuple has a length equal to a provided value. Raise error if object length is not equal to provided value.

Parameters:
  • v (tuple) – A Python tuple

  • vname (str) – Name of the Python tuple for use in the error message.

  • vlen (int) – Expected length of the Python tuple.

Return type:

None