def test_jcamp1():
    dic = ng.bruker.read_jcamp(os.path.join(DATA_DIR, "bruker_1d", "acqus"))
    assert dic['LFILTER'] == 200
    assert len(dic['PRECHAN']) == 16
    tf = tempfile.mktemp(dir='.')
    ng.bruker.write_jcamp(dic, tf)
    ndic = ng.bruker.read_jcamp(tf)
    assert dic_similar(dic, ndic)
    os.remove(tf)
reading/writing of JCAMP file 1
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_bruker.py/test_jcamp1