

def write(filename, dic, data, dataset='spectrum', overwrite=False):
    '\n    Write dic,data pair to a HDF5 file\n    '
    f = fileiobase.open_towrite(filename, overwrite=overwrite)
    f.close()
    f = h5py.File(filename, 'w')
    f.create_dataset(dataset, data=data)
    put_dic(f, dic, dataset)
    f.close()
    return

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