def test_1d():
    dic, data = ng.bruker.read(os.path.join(DATA_DIR, "bruker_1d"))
    assert dic['FILE_SIZE'] == 16384
    assert data.shape == (2048, )
    assert np.abs(data[20].real - -282.0) <= 0.01
    assert np.abs(data[20].imag - 14.0) <= 0.01
    assert np.abs(data[91].real - -840842.0) <= 0.01
    assert np.abs(data[91].imag - -1116591.0) <= 0.01
    write_readback(dic, data)
Returns Scott's normal reference rule of thumb bandwidth parameter.
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_bruker.py/test_1d--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/nonparametric/_kernel_base.py/GenericKDE._normal_reference