

def get_measurement_info(self):
    'Get the measurement information\n\n        Returns\n        -------\n        info : dict\n            The measurement information.\n        '
    cmd = ('measinfo %d' % self._client_id)
    self._send_command(cmd)
    buff = []
    directory = []
    pos = 0
    while True:
        (tag, this_buff) = _recv_tag_raw(self._data_sock)
        tag.pos = pos
        pos += (16 + tag.size)
        directory.append(tag)
        buff.append(this_buff)
        if ((tag.kind == FIFF.FIFF_BLOCK_END) and (tag.type == FIFF.FIFFT_INT)):
            val = np.fromstring(this_buff[(- 4):], dtype='>i4')
            if (val == FIFF.FIFFB_MEAS_INFO):
                break
    buff = ''.join(buff)
    fid = StringIO(buff)
    (tree, _) = make_dir_tree(fid, directory)
    (info, meas) = read_meas_info(fid, tree)
    return info

dataset/ETHPy150Open mne-tools/mne-python/mne/realtime/client.py RtClient.get_measurement_info/original