def write_info(fname, info, data_type=None, reset_range=True):
    "Write measurement info in fif file.\n\n    Parameters\n    ----------\n    fname : str\n        The name of the file. Should end by -info.fif.\n    info : instance of mne.fiff.meas_info.Info\n        The measurement info structure\n    data_type : int\n        The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT),\n        5 (FIFFT_DOUBLE), or 16 (mne.fiff.FIFF.FIFFT_DAU_PACK16) for\n        raw data.\n    reset_range : bool\n        If True, info['chs'][k]['range'] will be set to unity.\n    "
    fid = start_file(fname)
    start_block(fid, FIFF.FIFFB_MEAS)
    write_meas_info(fid, info, data_type, reset_range)
    end_block(fid, FIFF.FIFFB_MEAS)
    end_file(fid)
Write measurement info in fif file.

Parameters
----------
fname : str
    The name of the file. Should end by -info.fif.
info : instance of mne.fiff.meas_info.Info
    The measurement info structure
data_type : int
    The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT),
    5 (FIFFT_DOUBLE), or 16 (mne.fiff.FIFF.FIFFT_DAU_PACK16) for
    raw data.
reset_range : bool
    If True, info['chs'][k]['range'] will be set to unity.
def write_info(fname, info, data_type=None, reset_range=True):
    "Write measurement info in fif file.\n\n    Parameters\n    ----------\n    fname : str\n        The name of the file. Should end by -info.fif.\n    info : instance of mne.fiff.meas_info.Info\n        The measurement info structure\n    data_type : int\n        The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT),\n        5 (FIFFT_DOUBLE), or 16 (mne.fiff.FIFF.FIFFT_DAU_PACK16) for\n        raw data.\n    reset_range : bool\n        If True, info['chs'][k]['range'] will be set to unity.\n    "
    fid = start_file(fname)
    start_block(fid, FIFF.FIFFB_MEAS)
    write_meas_info(fid, info, data_type, reset_range)
    end_block(fid, FIFF.FIFFB_MEAS)
    end_file(fid)