semantique.processor.types.TypePromoter.check

semantique.processor.types.TypePromoter.check#

TypePromoter.check()[source]#

Check if the operation supports the operand value type(s).

Specific operations may only be applicable to specific value types. For example, semantique.processor.reducers.any_() is only supported for arrays containing binary values, and semantique.processor.operators.sum_() is only supported for operands that are both quantitative (i.e. continuous or discrete).

This method obtains the value type of the operand/operands and uses the type promotion manual to determine if the operation supports this value type/the combination of these value types.

Raises: