@attr(speed='fast')
def test_2d_freq_lowmem():
    """ low memory reading/writing of 2D RNMRTK frequency domain file """
    dic, data = ng.rnmrtk.read_lowmem(
        os.path.join(DATA_DIR, "rnmrtk_2d", "freq_2d.sec"))
    assert data.shape == (2048, 4096)
    assert np.abs(data[0, 1] - -.19) <= 0.01
    assert np.abs(data[10, 18] - 0.88) <= 0.01
    assert dic['sw'][1] == 50000.0
    assert dic['sf'][1] == 125.69
    assert dic['ppm'][1] == 55.0
    assert dic['sw'][0] == 5555.556
    assert dic['sf'][0] == 50.65
    assert dic['ppm'][0] == 120.0
    lowmem_write_readback(dic, data)
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_rnmrtk.py/test_2d_freq_lowmem/original