check_ndarray_has_value#
- pybrops.core.error.error_value_numpy.check_ndarray_has_value(v, vname, value)[source]#
Check if a
numpy.ndarray
contains a required value.- Parameters:
v (numpy.ndarray) – Input
numpy.ndarray
.vname (str) – Name of the
numpy.ndarray
variable.value (object) – A required value that the
numpy.ndarray
must contain.
- Return type:
None