def cortex_to_angle(self, x, y):
if not pimms.is_vector(x): return self.cortex_to_angle([x], [y])[<NUM_LIT:0>]<EOL>tx = self.inverse_transform<EOL>xy = np.asarray([x,y]).T if tx is None else np.dot(tx, [x,y,np.ones(len(x))])[<NUM_LIT:0>:<NUM_LIT:2>].T<EOL>interp_ae = self.cortical_mesh.interpolate(xy, [self.polar_angles, self.eccentricities],<EOL>method='<STR_LIT>')<EOL>interp_id = self.cortical_mesh.interpolate(xy, self.visual_areas,<EOL>method='<STR_LIT>')<EOL>interp = np.asarray([interp_ae[<NUM_LIT:0>], interp_ae[<NUM_LIT:1>], interp_id])<EOL>bad = np.where(np.isnan(np.prod(interp, axis=<NUM_LIT:0>)))[<NUM_LIT:0>]<EOL>interp[:,bad] = <NUM_LIT:0.0><EOL>return interp<EOL>
See RetinotopyModel.cortex_to_angle.