def test_2d_lowmem():
    dic, data = ng.bruker.read_lowmem(os.path.join(DATA_DIR, "bruker_2d"))
    assert dic['FILE_SIZE'] == 3686400
    assert data.shape == (600, 768)
    assert np.abs(data[0, 40].real - 28.0) <= 0.01
    assert np.abs(data[0, 40].imag - -286.0) <= 0.01
    assert np.abs(data[13, 91].real - -7279.0) <= 0.01
    assert np.abs(data[13, 91].imag - -17680.0) <= 0.01
    lowmem_write_readback(dic, data)
lowmemory reading/writing of 2D bruker data
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_bruker.py/test_2d_lowmem