diff --git a/.github/workflows/ci_tests_dev.yaml b/.github/workflows/ci_tests_dev.yaml index 4c2e9864f93..7cc17a559d7 100644 --- a/.github/workflows/ci_tests_dev.yaml +++ b/.github/workflows/ci_tests_dev.yaml @@ -143,7 +143,7 @@ jobs: run: | python -m pip install --pre --prefer-binary \ --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \ - 'numpy<2' pandas xarray netCDF4 packaging \ + numpy pandas xarray netCDF4 packaging \ build contextily dvc geopandas ipython pyarrow rioxarray \ pytest pytest-cov pytest-doctestplus pytest-mpl pytest-rerunfailures pytest-xdist\ sphinx-gallery diff --git a/pygmt/clib/conversion.py b/pygmt/clib/conversion.py index eb8daa61da1..95f2f08aa51 100644 --- a/pygmt/clib/conversion.py +++ b/pygmt/clib/conversion.py @@ -124,6 +124,8 @@ def dataarray_to_matrix(grid): grid = grid.sortby(variables=list(grid.dims), ascending=True) matrix = as_c_contiguous(grid[::-1].to_numpy()) + region = [float(i) for i in region] + inc = [float(i) for i in inc] return matrix, region, inc