def test_3d_lowmem():
    dic, data = ng.bruker.read_lowmem(os.path.join(DATA_DIR, "bruker_3d"))
    assert dic['FILE_SIZE'] == 91226112
    assert data.shape == (116, 128, 768)
    assert np.abs(data[0, 0, 40].real - 18.0) <= 0.01
    assert np.abs(data[0, 0, 40].imag - -66.0) <= 0.01
    assert np.abs(data[5, 13, 91].real - 1138.0) <= 0.01
    assert np.abs(data[5, 13, 91].imag - 3482.0) <= 0.01
    lowmem_write_readback(dic, data)
low memory reading/writing of 3D bruker data
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_bruker.py/test_3d_lowmem