Skip to content

Docs suddenly break due to contextily? #2716

@seisman

Description

@seisman

See https://github.com/GenericMappingTools/pygmt/actions/runs/6402505841/job/17379244355

Suddenly the docs break with following errors:

Unexpected failing examples:
/home/runner/work/pygmt/pygmt/examples/gallery/maps/tilemaps.py failed leaving traceback:
Traceback (most recent call last):
  File "/home/runner/work/pygmt/pygmt/examples/gallery/maps/tilemaps.py", line 37, in <module>
    fig.tilemap(
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/pygmt/helpers/decorators.py", line 598, in new_module
    return module_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/pygmt/helpers/decorators.py", line 738, in new_module
    return module_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/pygmt/src/tilemap.py", line 125, in tilemap
    raster = load_tile_map(
             ^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/pygmt/datasets/tile_map.py", line 120, in load_tile_map
    image, extent = contextily.bounds2img(
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/contextily/tile.py", line 225, in bounds2img
    merged, extent = _merge_tiles(tiles, arrays)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/pygmt/lib/python3.11/site-packages/contextily/tile.py", line 628, in _merge_tiles
    img[y * h : (y + 1) * h, x * w : (x + 1) * w, :] = arr
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (512,512,4) into shape (256,256,4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamBug or missing feature of upstream core GMT

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions