@attr(speed='slow')
def test_3d_time():
    """ reading/writing of 3D RNMRTK time domain file """
    dic, data = ng.rnmrtk.read(
        os.path.join(DATA_DIR, "rnmrtk_3d", "time_3d.sec"))
    assert data.shape == (128, 88, 1250)
    assert np.abs(data[0, 1, 2].real - 7.98) <= 0.01
    assert np.abs(data[0, 1, 2].imag - 33.82) <= 0.01
    assert np.abs(data[10, 11, 18].real - -9.36) <= 0.01
    assert np.abs(data[10, 11, 18].imag - -7.75) <= 0.01
    assert dic['sw'][2] == 50000.0
    assert dic['sf'][2] == 125.68
    assert dic['ppm'][2] == 56.0
    assert dic['sw'][1] == 2777.778
    assert dic['sf'][1] == 50.65
    assert dic['ppm'][1] == 120.0
    assert dic['sw'][0] == 5555.556
    assert dic['sf'][0] == 125.68
    assert dic['ppm'][0] == 56.0
    write_readback(dic, data)
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_rnmrtk.py/test_3d_time/original