check_ndarray_shape_eq#

pybrops.core.error.error_value_numpy.check_ndarray_shape_eq(v, vname, vshape)[source]#

Check if a numpy.ndarray has a specific shape.

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

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

  • vshape (tuple) – Expected shape of the input array.

Return type:

None