def read(filename, ftype=None, ndim=None, NP=None, NI=None, spe=None):
    if ftype is None:
        ftype = guess_ftype(filename)

    if ftype == "TEXT":
        return read_text(filename)
    elif ftype == "BINARY":
        return read_binary(filename)
    elif ftype == "XREIM":
        return read_xreim(filename)
    elif ftype == "XYREIM":
        return read_xyreim(filename)
    elif ftype == "RAWBIN":
        if spe is None:
            raise ValueError('spe must be True or False for raw_bin data')
        if ndim == 1:
            return read_raw_bin_1d(filename, spe)
        elif ndim == 2:
            if NP is None or NI is None:
                raise ValueError("NP and NI must be given for raw_bin data")
            return read_raw_bin_2d(filename, NP, NI, spe)
        else:
            raise ValueError('ndim must be 1 or 2 for raw_bin data')
    else:
        raise ValueError("unknown ftype")
Returns key-value pairs of all config variables.
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/simpson.py/read--crossover with--dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/core/config.py/ConfigHandler.items