Skip to content

Commit

Permalink
Replace deprecated array with asarray usage
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Apr 15, 2024
1 parent 934596c commit 703fa7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geotiepoints/multilinear.py
Expand Up @@ -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:
Expand Down

0 comments on commit 703fa7c

Please sign in to comment.