Skip to content

Commit

Permalink
Update gprutils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax authored Nov 24, 2023
1 parent de3f085 commit 213332e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpim/gprutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 213332e

Please sign in to comment.