From 703fa7c6742a41651c38b9fb65e8c53cbbb083a0 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Mon, 15 Apr 2024 14:43:42 -0500 Subject: [PATCH] Replace deprecated array with asarray usage See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword --- geotiepoints/multilinear.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geotiepoints/multilinear.py b/geotiepoints/multilinear.py index 740421d..0bdc85a 100644 --- a/geotiepoints/multilinear.py +++ b/geotiepoints/multilinear.py @@ -59,9 +59,9 @@ class MultilinearInterpolator: __grid__ = None def __init__(self, smin, smax, orders, values=None, dtype=np.float64): - self.smin = np.array(smin, dtype=dtype, copy=False) - self.smax = np.array(smax, dtype=dtype, copy=False) - self.orders = np.array(orders, dtype=np.int_, copy=False) + self.smin = np.asarray(smin, dtype=dtype) + self.smax = np.asarray(smax, dtype=dtype) + self.orders = np.asarray(orders, dtype=np.int_) self.d = len(orders) self.dtype = dtype if values is not None: