def analyse(self, a):
        a = np.sqrt(
            np.square(a['x'].astype(np.float)) +
            np.square(a['y'].astype(np.float))
        ).clip(0, 255).astype(np.uint8)
        if 50 > (a > 60).sum():
            # Ignore the first detection
            if self.first:
                self.first = False
                return
            self.handler.motion_detected()
dataset/ETHPy150Open citrusbyte/pimotion/pimotion/pimotion.py/MyMotionDetector.analyse/swapped operands of `>`