def _prepare_topomap(pos, ax):
 pos_x = pos[:, 0]
 pos_y = pos[:, 1]
 _hide_frame(ax)
 if any([(not pos_y.any()), (not pos_x.any())]):
  raise RuntimeError('No position information found, cannot compute geometries for topomap.')
 return (pos_x, pos_y)

def _prepare_topomap ( pos , ax ) : pos_x = pos [ : , 0 ] pos_y = pos [ : , 1 ] _hide_frame ( ax ) if any ( [ ( not pos_y . any ( ) ) , ( not pos_x . any ( ) ) ] ) : raise RuntimeError ( 'No position information found, cannot compute geometries for topomap.' ) return ( pos_x , pos_y )
helper for preparing the topomap .