compare pupil_angle.rad() intsead of pupil_angle itself
(#601)