Skip to content

Commit 60c791d

Browse files
committed
Revert "Deep copy grid using xarray.DataArray.copy instead of numpy.copy"
This reverts commit 5a685b2.
1 parent bf03e5b commit 60c791d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def dataarray_to_matrix(grid):
114114
inc = [abs(i) for i in inc]
115115
grid = grid.sortby(variables=list(grid.dims), ascending=True)
116116

117-
matrix = as_c_contiguous(grid[::-1].copy(deep=True).data)
117+
matrix = as_c_contiguous(grid[::-1].values)
118118
return matrix, region, inc
119119

120120

0 commit comments

Comments
 (0)