Skip to content

Navigation Menu

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

Appearance settings

Attempted to add test_pcolorfast in test_datetime.py #27450

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
Loading
from

Conversation

AndyXi163
Copy link

@AndyXi163 AndyXi163 commented Dec 6, 2023

PR summary

Attempted to add code to test_pcolorfast in test_datetime.py as requested in #26864
Based on my researches and shallow understandings of the code, the original function pcolorfast() does not seem to directly support inputs of type datetime.datetime or numpy.datetime64; therefore I have used date2num() to make the graph print correctly.
I am (almost) new to GitHub and entirely new to OSS contributions so I apologize ahead if I have made mistakes or caused trouble. Please feel free to point out my flaws and mistakes so that I can correct them.

The outputted graph is as follows:
pcolorfast_plot

PR checklist

Copy link

@github-actions github-actions bot left a 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 week or so, please leave a new comment below and that should bring it to our attention. 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.

@AndyXi163 AndyXi163 closed this Dec 6, 2023
@AndyXi163 AndyXi163 reopened this Dec 6, 2023
@AndyXi163 AndyXi163 marked this pull request as ready for review December 6, 2023 07:15
@AndyXi163
Copy link
Author

Wait... what's happening with all the test fails...?
I will be very grateful if someone can briefly explain it for me; thanks!

lib/matplotlib/tests/test_datetime.py Outdated Show resolved Hide resolved
@ksunden
Copy link
Member

ksunden commented Dec 6, 2023

Thank you for working this!

One of the explicit goals of writing these tests was in fact to find places where our unit handling could be better/methods that should participate in unit conversions but don't. Could you create an issue to help us track it?

We may not merge this PR before that is resolved, since actually passing datetimes in is intended to work and is what we wish to be testing here (though I don't think we should remove the test as not wanted because we will want it eventually.)

@ksunden ksunden mentioned this pull request Dec 6, 2023
64 tasks
@QuLogic
Copy link
Member

QuLogic commented Dec 16, 2023

I've opened #27526 to track the missing unit handling in pcolorfast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.