check_ndarray_axis_len#

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

Check if a numpy.ndarray has a specific length along a specific axis.

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

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

  • vaxis (int) – Axis along which to measure the length.

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

Return type:

None