Skip to content

Commit

Permalink
dataarray_to_matrix: Make sure that the returned region/inc is a list…
Browse files Browse the repository at this point in the history
… of scalar values
  • Loading branch information
seisman committed Jun 17, 2024
1 parent 92a69e0 commit dd0131d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/clib/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def dataarray_to_matrix(grid):
)
region.extend(
[
coord.min() - coord_inc / 2 * grid.gmt.registration,
coord.max() + coord_inc / 2 * grid.gmt.registration,
float(coord.min()) - coord_inc / 2 * grid.gmt.registration,
float(coord.max()) + coord_inc / 2 * grid.gmt.registration,
]
)
inc.append(coord_inc)
Expand Down

0 comments on commit dd0131d

Please sign in to comment.