Skip to content

Commit

Permalink
Revert "Deep copy grid using xarray.DataArray.copy instead of numpy.c…
Browse files Browse the repository at this point in the history
…opy"

This reverts commit 5a685b2.
  • Loading branch information
weiji14 committed Jul 15, 2020
1 parent bf03e5b commit 60c791d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def dataarray_to_matrix(grid):
inc = [abs(i) for i in inc]
grid = grid.sortby(variables=list(grid.dims), ascending=True)

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


Expand Down

0 comments on commit 60c791d

Please sign in to comment.