def _build_1d_ppm_scale():
    n = 500
    sw = 1/1000e-6
    obs = 100  # Mhz

    dx = (sw / n)/obs
    ppm_scale = np.arange(dx, dx * n, dx)

    # To match the apparent NMR convention the array has to be reversed.
    return ppm_scale[::-1]


# test functions
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/analysis/tests/test_analysis_integration.py/_build_1d_ppm_scale/original