def angle_to_cortex(self, *args):
if len(args) == <NUM_LIT:1>:<EOL><INDENT>if geo.is_vset(args[<NUM_LIT:0>]):<EOL><INDENT>ang = vis.retinotopy_data(args[<NUM_LIT:0>], '<STR_LIT>')<EOL>ecc = vis.retinotopy_data(args[<NUM_LIT:0>], '<STR_LIT>')<EOL>return self.model.angle_to_cortex(ang, ecc)<EOL><DEDENT>else:<EOL><INDENT>tr = np.asarray(args)<EOL>if tr.shape[<NUM_LIT:1>] == <NUM_LIT:2>: tr = tr.T<EOL>elif tr.shape[<NUM_LIT:0>] != <NUM_LIT:2>: raise ValueError('<STR_LIT>')<EOL>return self.model.angle_to_cortex(tr[<NUM_LIT:0>], tr[<NUM_LIT:1>])<EOL><DEDENT><DEDENT>else: return self.model.angle_to_cortex(*args)<EOL>
The angle_to_cortex method of the RegisteredRetinotopyModel class is identical to that
of the RetinotopyModel class, but the method may be given a map, mesh, or hemisphere, in
which case the result is applied to the 'polar_angle' and 'eccentricity' properties.