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 failing gouraud shading mask creation in pccolormesh #2401

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

e-k-m
Copy link
Contributor

@e-k-m e-k-m commented Jun 20, 2024

Rationale

Using pccolormesh with gouraud shading fails on wrap around mask creation, since numpy array mask is created with negative dimension.

Details: Fails here https://github.com/SciTools/cartopy/blob/main/lib/cartopy/mpl/geoaxes.py#L1896 because
data_shape equals (Nx, Ny, -1) or (Ny - 1, Nx - 1, -1).

Implications

As far as I can see there are no implications of the proposed change.

@CLAassistant
Copy link

CLAassistant commented Jun 20, 2024

CLA assistant check
All committers have signed the CLA.

@e-k-m
Copy link
Contributor Author

e-k-m commented Jun 20, 2024

Docs generation seems to fail given an unrelated issue to this PR. Ready for review. THX.

Copy link
Contributor

@greglucas greglucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this! Looks like that was just overlooked in #2166

lib/cartopy/crs.py Outdated Show resolved Hide resolved
lib/cartopy/tests/mpl/test_mpl_integration.py Outdated Show resolved Hide resolved
@greglucas greglucas merged commit 300c8b1 into SciTools:main Jun 22, 2024
17 of 20 checks passed
@rcomer rcomer added this to the Next Release milestone Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants