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
Checks whether a given file-like object is closed.
dataset/ETHPy150Open mne-tools/mne-python/mne/viz/topomap.py/_prepare_topomap--crossover with--dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/util.py/is_fp_closed