fix ft_ref_n_new not being an array

This commit is contained in:
Valentin Boettcher 2022-02-21 15:57:40 +01:00
parent 7e6da5b162
commit 6687f5aa07
2 changed files with 2 additions and 2 deletions

View file

@ -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 <richard.hartmann@tu-dresden.de>"]
license = "BSD (3 clause)"
classifiers = [

View file

@ -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()