Skip to content

Changes in the image for test_load_from_url #17776

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

Merged
merged 1 commit into from
Jun 28, 2020

Conversation

SidharthBansal
Copy link
Contributor

PR Summary

Image for the test_load_from_url changed so that it can use the images which are not baseline images. This will be later benificial for the division of mpl into mpl and mpl_baseline_images package as #17557

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -713,7 +713,7 @@ def test_minimized_rasterized():


def test_load_from_url():
path = Path(__file__).parent / "baseline_images/test_image/imshow.png"
path = Path(__file__).parent / "baseline_images/pngsuite/basn3p04.png"
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why we think this image will be permanent either, and it seems a very obscure image to choose. Isn't there something in mpl_data/images that would be more appropriate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This image will remain as it is also used in

png_path = Path(__file__).parent / "baseline_images/pngsuite/basn3p04.png"
.
Secondly, the basn3p04.png image is not used in image_comparison tests. So, we don't need to shift it into the mpl_baseline_images package in #17557

Copy link
Member

Choose a reason for hiding this comment

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

But shouldn’t that be moved as well? It’s going to be pretty confusing to have baseline_images and another package of baseline_images.

Copy link
Member

Choose a reason for hiding this comment

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

The primary reason the basn*.png files exist is as input for the test in test_png so is not in the category of images that will be removed by the GSOC code landing. On the other hand, the file that this used to point is a baseline image that will be removed.

@tacaswell tacaswell added this to the v3.4.0 milestone Jun 28, 2020
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

Despite its location, this is actually an "input" for the test suite not an actual baseline image.

@tacaswell tacaswell merged commit 1e9f908 into matplotlib:master Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants