From 92a8b614eacf3469e5dea8672b0694eda77938a0 Mon Sep 17 00:00:00 2001 From: "Anders E.E. Wallin" Date: Thu, 4 Jul 2024 10:38:56 +0300 Subject: [PATCH] simpson(y, x=f) --- allantools/allantools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allantools/allantools.py b/allantools/allantools.py index 7e2e133..737e779 100644 --- a/allantools/allantools.py +++ b/allantools/allantools.py @@ -1759,7 +1759,7 @@ def psd2allan(S_y, f=1.0, kind='adev', base=2): for idx, mj in enumerate(m)]) integrand = np.insert(integrand, 0, 0.0, axis=1) f = np.insert(f, 0, 0.0) - ad = np.sqrt(2.0 * simpson(integrand, f)) + ad = np.sqrt(2.0 * simpson(integrand, x=f)) return taus_used, ad