Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

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 isFlake 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
ContributorAuthor

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, thebasn3p04.png image is not used inimage_comparison tests. So, we don't need to shift it into thempl_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 thebasn*.png files exist is as input for the test intest_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.

@tacaswelltacaswell added this to thev3.4.0 milestoneJun 28, 2020
Copy link
Member

@tacaswelltacaswell 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.

@tacaswelltacaswell merged commit1e9f908 intomatplotlib:masterJun 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@tacaswelltacaswelltacaswell approved these changes

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.0
Development

Successfully merging this pull request may close these issues.

4 participants
@SidharthBansal@tacaswell@anntzer@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp