check_ndarray_ndim#
- pybrops.core.error.error_value_numpy.check_ndarray_ndim(v, vname, vndim)[source]#
Check if a
numpy.ndarray
has a specific number of dimensions.- Parameters:
v (numpy.ndarray) – Input array.
vname (str) – Name assigned to input array.
vndim (int) – Expected number of dimensions for the array.
- Return type:
None