generic_check_ndarray_shape#

pybrops.core.error.error_generic_numpy.generic_check_ndarray_shape(v, vname, vshape, vaxis=None)[source]#

Generic check ndarray shape function.

Parameters:
  • v (numpy.ndarray) – Reference to object variable.

  • vname (str) – Name associated with the object variable.

  • vshape (int, tuple) – Shape ‘v’ must have.

  • vaxis (None, int, tuple) – Axis or axes along which to check shape.

Return type:

None