Skip to content

Commit 8076db4

Browse files
authored
CI: Unpin NumPy in the GMT Dev Tests workflow and fix the dataarray_to_matrix doctest (#3208) (#3226)
1 parent 3719474 commit 8076db4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
run: |
144144
python -m pip install --pre --prefer-binary \
145145
--extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
146-
'numpy<2' pandas xarray netCDF4 packaging \
146+
numpy pandas xarray netCDF4 packaging \
147147
build contextily dvc geopandas ipython pyarrow rioxarray \
148148
pytest pytest-cov pytest-doctestplus pytest-mpl pytest-rerunfailures pytest-xdist\
149149
sphinx-gallery

pygmt/clib/conversion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def dataarray_to_matrix(grid):
124124
grid = grid.sortby(variables=list(grid.dims), ascending=True)
125125

126126
matrix = as_c_contiguous(grid[::-1].to_numpy())
127+
region = [float(i) for i in region]
128+
inc = [float(i) for i in inc]
127129
return matrix, region, inc
128130

129131

0 commit comments

Comments
 (0)