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

Check for mask in GeoQuadMesh.get_array test #2174

Merged
merged 1 commit into from
May 6, 2023

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Apr 29, 2023

Rationale

Currently the tests all pass if the get_array method is completely removed from GeoQuadMesh. Unfortunately np.array_equal ignores the masks. Since our reference/input data has no mask, the simplest way to account for this is to check the output is also unmasked. With this change, if you remove the get_array method, the test now fails.

(I tripped over this while messing about with #2166 and matplotlib/matplotlib#25027.)

Implications

@rcomer
Copy link
Member Author

rcomer commented Apr 29, 2023

CI failures appear to be unrelated.

@rcomer rcomer closed this May 3, 2023
@rcomer rcomer reopened this May 3, 2023
@QuLogic QuLogic merged commit 9a6b9b1 into SciTools:main May 6, 2023
@QuLogic QuLogic added this to the 0.22 milestone May 6, 2023
@rcomer rcomer deleted the GeoQuadMesh-get_array branch May 6, 2023 14:41
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.

2 participants