Skip to content
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

Sudden doctest failure in pygmt.datasets.tile_map.load_tile_map #3575

Closed
seisman opened this issue Nov 4, 2024 · 0 comments · Fixed by #3576
Closed

Sudden doctest failure in pygmt.datasets.tile_map.load_tile_map #3575

seisman opened this issue Nov 4, 2024 · 0 comments · Fixed by #3576
Labels
upstream Bug or missing feature of upstream core GMT
Milestone

Comments

@seisman
Copy link
Member

seisman commented Nov 4, 2024

https://github.com/GenericMappingTools/pygmt/actions/runs/11655802966/job/32451001456:

_______________ [doctest] pygmt.datasets.tile_map.load_tile_map ________________
[gw0] linux -- Python 3.12.7 /home/runner/micromamba/envs/pygmt/bin/python3.12
118     >>> raster.sizes
119     Frozen({'band': 3, 'y': 256, 'x': 512})
120     >>> raster.coords  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
121     Coordinates:
122       * band         (band) uint8 ... 1 2 3
123       * y            (y) float64 ... -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
124       * x            (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
125         spatial_ref  int... 0
126     >>> # CRS is set only if rioxarray is available
127     >>> if hasattr(raster, "rio"):
Expected:
    CRS.from_epsg(3857)
Got:
    CRS.from_wkt('PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]]')

/home/runner/work/pygmt/pygmt/pygmt/datasets/tile_map.py:127: DocTestFailure

Most likely due to changes in rasterio 1.4.2 (https://github.com/rasterio/rasterio/releases/tag/1.4.2).

@seisman seisman added triage Unsure where this issue fits upstream Bug or missing feature of upstream core GMT and removed triage Unsure where this issue fits labels Nov 4, 2024
@seisman seisman added this to the 0.14.0 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Bug or missing feature of upstream core GMT
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant