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, andsemantique.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:
exceptions.InvalidValueTypeError – If the operation does not support the operand value type(s).
ValueError – If the type promotion manual is missing.