check_ndarray_len_eq#

pybrops.core.error.error_value_numpy.check_ndarray_len_eq(v, vname, vlen)[source]#

Check if a numpy.ndarray has a specific length.

Parameters:
  • v (numpy.ndarray) – Input array.

  • vname (str) – Name assigned to input array.

  • vlen (int) – Expected length of the input array.

Return type:

None