@attr(speed='fast')
def test_1d_time():
    """ reading/writing of 1D RNMRTK time domain file """
    dic, data = ng.rnmrtk.read(
        os.path.join(DATA_DIR, 'rnmrtk_1d', 'time_1d.sec'))
    assert data.shape == (1500, )
    assert np.abs(data[0].real - 91899.24) <= 0.01
    assert np.abs(data[0].imag - -1964.70) <= 0.01
    assert np.abs(data[1].real - 168844.25) <= 0.01
    assert np.abs(data[1].imag - -49503.41) <= 0.01
    assert dic['sw'][0] == 50000.0
    assert dic['sf'][0] == 125.68
    assert dic['ppm'][0] == 99.0
    write_readback(dic, data)
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_rnmrtk.py/test_1d_time/original