-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add a test for Hexbin Linear #21562
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
Add a test for Hexbin Linear #21562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping @matplotlib/developers
or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
The new test is failing unfortunately. Please make sure you test with up-to-date matplotlib main on your machine first. |
Yeah, sure I were going to do that. |
@jklymak hey, Why the |
New contributors don't get all tests run automatically, but that makes codecov fail (because some tests are not being run). Nothing to worry about. I manually started your remaining tests. Thanks! |
my pleasure, thank you by your help! |
Now why this one test are failing? |
If you click through the failing test you can see that it was failing to connect to a server to upload artifacts, which happens sometimes, but is probably not this PRs fault. |
That might be |
@jklymak Can I left like that? With this test failed? |
The tests passed, it was just an upload of artifacts that failed, so I would say its fine. |
Ok |
@QuLogic I have already solved the issues you pointed out, thanks! |
I just merged this branch with |
If possible, it'd be preferred if you rebased but it looks like we'll have to squash merge to get rid of the duplicate images anyway, so that might not be necessary. |
@QuLogic I rebased it, and I think it worked, the tests are now passing, but |
Your PR has a bunch of extraneous commits, hence the PR cleanliness failure. I'm not sure if a squash merge will get rid of these, if I was fixing this I would do a rebase, drop the extra commits, and then rebase onto latest master. Back up your branch before you do this though so you don't lose anything! Maybe others will have better advice. (back up means do |
@jklymak Apparently solved |
How can I fix the fact that my baseline image is duplicated? I delete it in my local repo and push it? Any idea? |
You almost had the rebase, but after rebasing, you have to force push up to GitHub. If you pull, you just get back the old commits again and merge them into the history again. |
@QuLogic So I will have to do the rebase again? If so, could you write a small guide please? I've never done a rebase and the texts I found on internet is a little confusing. |
You did it right the first time, you just then undid your work by doing a |
Ok, Sorry by the request, I am learning a lot contributing with open source software. |
author Lucas Ricci <llricci@aluno.crb.g12.br> 1636671767 -0300 committer Lucas Ricci <llricci@aluno.crb.g12.br> 1636755318 -0300 parent 29a3707 author Lucas Ricci <llricci@aluno.crb.g12.br> 1636671767 -0300 committer Lucas Ricci <llricci@aluno.crb.g12.br> 1636755293 -0300 deleted and updated baseline image for test_hexbin_linear() Resolve issue #21165, Add Hexbin Linear test a little correction in the code update Update update update a few corrections Resolve issue #21165, Add Hexbin Linear test a little correction in the code Resolve issue #21165, Add Hexbin Linear test a little correction in the code update Update update update a few corrections removing a typo where hexbon_linear() were duplicated
The tests passed now! Great. |
@QuLogic a bit confused by this and that, but yes, it is preferable if we can solve #21349 before we merge this pull request here. |
@timhoffm So what is gonna be the approach in that case? |
Right, this PR is fine, but the marginals may change under #21339, so adding the image, and then re-adding it is unecessary churn in our repo. So I'll mark this as depending on another PR and move to draft for now. Thanks for your patience @LucasRicci |
@jklymak Just for further information, what is the max period that a PR should be inactivity to be closed? |
Just subscribe to upstream issue and when it is merged you can move this one to "ready" |
This appears to need a rebase now, though looking again, it appears that this duplicates #21339? |
@QuLogic Idk, but if so, I'll close this PR |
The test is already covered in #21339 now. @LucasRicci I'm sorry that there has been overlapping work, but the objective of #21339 changed after we realized that the behavior was in fact correct and a test was then added for this. Anyway, thank you for the PR. Even though this was not merged, your contributions is valuable to bring the discussion forward. |
PR Summary
This PR is to fix the issue #21165:
matplotlib/lib/matplotlib/tests
, with nametest_hexbin_linear
;matplotlib/lib/matplotlib/tests/baseline_images/text_axes
, this image has a use, it is the image that the test will compare with.PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).