check_len_eq#

pybrops.core.error.error_value_python.check_len_eq(v, vname, w, wname)[source]#

Check is two objects have the same lengths. Raise error if object lengths are not equivalent.

Parameters:
  • v (object) – The first Python object for which to compare lengths.

  • vname (str) – Name of the first Python object for which to compare lengths.

  • w (object) – The second Python object for which to compare lengths.

  • wname (str) – Name of the second Python object for which to compare lengths.

Return type:

None