def convertToPix(vertices, pos, units, win):
 unit2pixFunc = _unit2PixMappings.get(units)
 if unit2pixFunc:
  return unit2pixFunc(vertices, pos, win)
 else:
  msg = 'The unit type [{0}] is not registered with PsychoPy'
  raise ValueError(msg.format(units))

def convertToPix ( vertices , pos , units , win ) : unit2pixFunc = _unit2PixMappings . get ( units ) if unit2pixFunc : return unit2pixFunc ( vertices , pos , win ) else : msg = 'The unit type [{0}] is not registered with PsychoPy' raise ValueError ( msg . format ( units ) )
takes vertices and position .