mindscience.utils.check_param_value

mindscience.utils.check_param_value(param, param_name, valid_value)[source]

Check parameter's value.

Parameters
  • param (any) – The parameter to check.

  • param_name (str) – The name of the parameter.

  • valid_value (Union[any, tuple, list]) – The allowed values.

Raises

ValueError – If the value of the param is not in the allowed values.