check_ndarray_has_values#

pybrops.core.error.error_value_numpy.check_ndarray_has_values(v, vname, *args)[source]#

Check if a numpy.ndarray contains all required values.

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

  • vname (str) – Name of the numpy.ndarray variable.

  • args (tuple) – A tuple of required values that the numpy.ndarray must contain.

Return type:

None