zospy.api.constants.get_constantname_by_value

zospy.api.constants.get_constantname_by_value#

zospy.api.constants.get_constantname_by_value(constant_tuple, value)#

Obtain a constant name from a value.

Parameters:
constant_tuple: tuple

The set of constants used to look up the value

value: int

The value for which the constant name is to be found

Returns:
str

The constant name