def sensitivityByOp(op):
if op == AllOps.RISING_EDGE:<EOL><INDENT>return SENSITIVITY.RISING<EOL><DEDENT>elif op == AllOps.FALLING_EDGE:<EOL><INDENT>return SENSITIVITY.FALLING<EOL><DEDENT>else:<EOL><INDENT>raise TypeError()<EOL><DEDENT>
get sensitivity type for operator