

def read_lowmem(filename, dataset='spectrum'):
    '\n    Read a glue file using mimimal memory usage\n    '
    f = h5py.File(filename, 'r')
    dic = get_dic(f, dataset)
    data = wrap_data(f[dataset])
    return (dic, data)

dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py read_lowmem/original