Validate that the input is a nested iterable of numeric values.
The input is flattened using :func:dumbpy.support_functions.flatten_list, then each flattened element is checked to be an int, float, or bool. If all elements are numeric, the flattened list is returned.
Parameters
Name
Type
Description
Default
values
Iterable[Any]
Any nested iterable that may contain numeric values.
required
Returns
Name
Type
Description
list[Numeric]
A flattened list containing all elements from values, if all values are numeric.
Raises
Name
Type
Description
TypeError
If values is not a valid top-level input for :func:flatten_list, or if any flattened element is not numeric.
ValueError
If any numeric value is non-finite (NaN or Infinity).