From 958146407395ecc7b813a4ba4c532e699c5c0b59 Mon Sep 17 00:00:00 2001 From: Owen Claxton Date: Sun, 2 Mar 2025 15:28:31 +1100 Subject: [PATCH] replace use of np.array(copy=False) with np.asarray() --- filterpy/stats/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filterpy/stats/stats.py b/filterpy/stats/stats.py index b3030121..f0dbcf79 100644 --- a/filterpy/stats/stats.py +++ b/filterpy/stats/stats.py @@ -379,8 +379,8 @@ def multivariate_gaussian(x, mu, cov): "a future release of FilterPy"), DeprecationWarning) # force all to numpy.array type, and flatten in case they are vectors - x = np.array(x, copy=False, ndmin=1).flatten() - mu = np.array(mu, copy=False, ndmin=1).flatten() + x = np.asarray(x).flatten() + mu = np.asarray(mu).flatten() nx = len(mu) cov = _to_cov(cov, nx)