Skip to content

Fix the DataArray repr in the load_tile_map doctest for xarray v2024.02 #3062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 15, 2024
2 changes: 1 addition & 1 deletion .github/workflows/ci_doctests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Doctests
on:
# push:
# branches: [ main ]
# pull_request:
pull_request:
# Schedule weekly tests on Sunday
schedule:
- cron: '0 0 * * 0'
Expand Down
6 changes: 3 additions & 3 deletions pygmt/datasets/tile_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def load_tile_map(
Frozen({'band': 3, 'y': 256, 'x': 512})
>>> raster.coords
Coordinates:
* band (band) uint8 0 1 2
* y (y) float64 -7.081e-10 -7.858e+04 ... -1.996e+07 ...
* x (x) float64 -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
* band (band) uint8 3B 0 1 2
* y (y) float64 2kB -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
* x (x) float64 4kB -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
"""
if not _HAS_CONTEXTILY:
raise ImportError(
Expand Down