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

Fix the tile_map doctest which has different output on Windows in the GMT Legacy Tests #3353

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Jul 24, 2024

Description of proposed changes

See https://github.com/GenericMappingTools/pygmt/actions/runs/10050492014/job/27778503913

================================== FAILURES ===================================
_______________ [doctest] pygmt.datasets.tile_map.load_tile_map _______________
111     >>> from pygmt.datasets import load_tile_map
112     >>> raster = load_tile_map(
113     ...     region=[-180.0, 180.0, -90.0, 0.0],  # West, East, South, North
114     ...     zoom=1,  # less detailed zoom level
115     ...     source=contextily.providers.OpenTopoMap,
116     ...     lonlat=True,  # bounding box coordinates are longitude/latitude
117     ... )
118     >>> raster.sizes
119     Frozen({'band': 3, 'y': 256, 'x': 512})
120     >>> raster.coords  # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Differences (unified diff with -expected +actual):
    @@ -1,5 +1,5 @@
     Coordinates:
    -  * band         (band) uint8 ... 1 2 3
    -  * y            (y) float64 ... -7.081e-10 -7.858e+04 ... -1.996e+07 -2.004e+07
    -  * x            (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
    -    spatial_ref  int64 ... 0
    +  * band         (band) uint8 3B 1 2 3
    +  * 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
    +    spatial_ref  int32 4B 0

Triggered a new CI run at https://github.com/GenericMappingTools/pygmt/actions/runs/10069565056.

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Jul 24, 2024
@seisman seisman added this to the 0.13.0 milestone Jul 24, 2024
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Jul 24, 2024
@seisman seisman merged commit e67cd66 into main Jul 25, 2024
27 checks passed
@seisman seisman deleted the doctest/tilemap branch July 25, 2024 02:57
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant