@attr(speed='fast')
def test_2d_time_lowmem():
    """ low memory reading/writing of 2D RNMRTK time domain file """
    dic, data = ng.rnmrtk.read_lowmem(
        os.path.join(DATA_DIR, "rnmrtk_2d", "time_2d.sec"))
    assert data.shape == (332, 1500)
    assert 0.01 <= np.abs(data[0, 1].real - 360.07)
    assert np.abs(data[0, 1].imag - -223.20) <= 0.01
    assert np.abs(data[10, 18].real - 17.93) <= 0.01
    assert np.abs(data[10, 18].imag - -67.20) <= 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_time_lowmem/swapped operands of `<=`