def decodePieLocation(self, thetaMid):
        # a sin or cos that is small enough so that the
        # associated angle is horizontal (for sines) or vertical
        # (for cosines) enough to warrant use of a "centered"
        # annotation location.
        LOOKS_VERTICAL_OR_HORIZONTAL_DELTA = 0.1
        sinTheta = math.sin(thetaMid)
        cosTheta = math.cos(thetaMid)
        if -LOOKS_VERTICAL_OR_HORIZONTAL_DELTA < cosTheta:
            pieTransformedWidthMultiplier = -self.heightMultiplier
        elif cosTheta > LOOKS_VERTICAL_OR_HORIZONTAL_DELTA:
            pieTransformedWidthMultiplier = self.heightMultiplier
        else:
            pieTransformedWidthMultiplier = 0
        # XXX ?? surely this should be widthMultiplier?
        if sinTheta < -LOOKS_VERTICAL_OR_HORIZONTAL_DELTA:
            pieTransformedHeightMultiplier = -self.heightMultiplier
        elif sinTheta > LOOKS_VERTICAL_OR_HORIZONTAL_DELTA:
            pieTransformedHeightMultiplier = self.heightMultiplier
        else:
            pieTransformedHeightMultiplier = 0
        
        return getAnnotationLocation(pieTransformedWidthMultiplier,
                                pieTransformedHeightMultiplier)
        
    
    
 # end of class AnnotationLocation
    
# non-tagging-only locations used by ANCHOR_MOUSE_* symbol types
dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/AnnotationLocation.py/AnnotationLocation.decodePieLocation/swapped operands of `<`