@pimms.param<EOL><INDENT>def area_name_to_id(vai):<DEDENT>
if vai is None: return None<EOL>if not pimms.is_map(vai): return pyr.pmap({nm:(ii+<NUM_LIT:1>) for (ii,nm) in enumerate(vai)})<EOL>elif pimms.is_pmap(vai): return vai<EOL>else: return pyr.pmap(vai)<EOL>
mdl.area_name_to_id is a persistent map whose keys are area names (such as 'V1' or 'hV4')
and whose values are the area id (a number greater than 0) for that area.
mdl.area_name_to_id is a parameter which may be provided as a lsit of area names, in which
case the first is assumed to be area 1, the next area 2, etc.