From 213332ed07192223cb70b38f33ed075a5ecc1e2e Mon Sep 17 00:00:00 2001 From: Maxim Ziatdinov <34245227+ziatdinovmax@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:28:12 -0800 Subject: [PATCH] Update gprutils.py --- gpim/gprutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpim/gprutils.py b/gpim/gprutils.py index 98a2a5c..85411a8 100644 --- a/gpim/gprutils.py +++ b/gpim/gprutils.py @@ -99,7 +99,7 @@ def get_grid_indices(R, dense_x=1.): if np.ndim(R) > 3: raise NotImplementedError( "Currently supports only 2D and 3D arrays") - dense_x = np.float(dense_x) + dense_x = np.float64(dense_x) X_full = get_full_grid(R, dense_x) X_sparse = get_sparse_grid(R) return X_full, X_sparse @@ -122,7 +122,7 @@ def get_full_grid(R, extent=None, dense_x=1.): Returns: Grid indices as numpy array """ - dense_x = np.float(dense_x) + dense_x = np.float64(dense_x) if np.ndim(R) == 2: e1, e2 = R.shape if extent: