semantique.exceptions.AlignmentError

Contents

semantique.exceptions.AlignmentError#

exception semantique.exceptions.AlignmentError[source]#

Raised when an array cannot be aligned to a given shape.

This occurs for example when evaluating bivariate expressions on pixels in an array using the evaluate verb, filtering values in an array using the filter verb, or splitting an array into distinct groups using the groupby verb. In all these processes a second array is involved, which is aligned to the same shape as the input, such that each of its pixels has a corresponding pixel in the input. In some cases alignment is not possible, e.g. when the second array has no dimensions in common with the input or when it has more dimensions than the input.