semantique.exceptions.InvalidValueTypeError#
- exception semantique.exceptions.InvalidValueTypeError[source]#
Raised when an array has a value type which a process does not allow.
This occurs for example when evaluating expressions for pixels in an array using the evaluate verb, or when reducing the dimensionality of an array using the reduce verb. These processes allow to choose from a wide range of respectively operator an reducer functions, each of which can only be sensibly used when the inputs are of a certain value type. It may also occur in the concatenate verb, which requires all provided arrays to have the same value type, the compose verb, which requires all provided arrays to be binary, and the filter verb, which requires the filterer to be binary.
Note
You may disable value type tracking by setting
track_types = False
when executing a query recipe.