def orient_choose_direction(self, joint, jointUnder, frontAxis):
        #TODO : Validate frontAxis
        if frontAxis == "x":
            frontInt = 0
        elif frontAxis == "z":
            frontInt = 2
        returnVal = 1

        transform_1 = DrawNode(Shape.transform, 'direction1')
        transform_1.temp_constrain(joint)

        transform_2 = DrawNode(Shape.transform, "direction2")
        transform_2.temp_constrain(jointUnder)

        frontTransform = transform_1.transform[frontInt] - \
                         transform_2.transform[frontInt]
        if 0 > frontTransform:
            returnVal = -1
        transform_1.delete()
        transform_2.delete()

        return returnVal
dataset/ETHPy150Open eoyilmaz/anima/anima/rig/joint.py/JointChain.orient_choose_direction/swapped operands of `>`