From 6687f5aa07aea254625bca6c50abf460f190ebc7 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Mon, 21 Feb 2022 15:57:40 +0100 Subject: [PATCH] fix ft_ref_n_new not being an array --- pyproject.toml | 2 +- stocproc/method_ft.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f29747..140735d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] description = "Generate continuous time stationary stochastic processes from a given auto correlation function." name = "stocproc" -version = "1.0.4" +version = "1.0.5" authors = ["Richard Hartmann "] license = "BSD (3 clause)" classifiers = [ diff --git a/stocproc/method_ft.py b/stocproc/method_ft.py index d9dc7c6..f93059a 100644 --- a/stocproc/method_ft.py +++ b/stocproc/method_ft.py @@ -533,7 +533,7 @@ def get_dt_for_accurate_interpolation(t_max, tol, ft_ref, diff_method=_absDiff): pool = Pool() try: - ft_ref_n_new = pool.map(ft_ref, tau[1::2]) + ft_ref_n_new = np.asarray(pool.map(ft_ref, tau[1::2])) finally: pool.close()