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

Remove datetime test for axes.pie#27117

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

Sheepfan0828
Copy link
Contributor

@Sheepfan0828Sheepfan0828 commentedOct 17, 2023
edited
Loading

PR summary

The task i am working with isAxe.pie problem from the issue#26864 . TheAxe.pie should be removed from the filetest_datetime.py file because we cannot directly pass thedatetime object intopie as a parameter to perform any of the plots. The error message below shows the case occured whendatetime object is directly passed into thepie function:
屏幕截图 2023-10-17 164915

PR checklist

@Sheepfan0828
Copy link
ContributorAuthor

Both u7277320 and sheepfan0828 are my personal Github account

Copy link

@github-actionsgithub-actionsbot 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 uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@Sheepfan0828
Copy link
ContributorAuthor

Is it okey that some checks are not passed?

@ksunden
Copy link
Member

The linting would need to be addressed.

However, more fundamentally, this is not exercising the datetime unit machinery that is expected here, and in factpie in general does not use the units system (and it's unclear what it evenwould mean).

As such I thinkpie should just be removed from this file all together (much like we did to table/spectral methods in#27072)

The list from the original issue/stubs was intentionally a bit broad but part of the idea was to evaluate whether it was using units at all. In this case it is not, and so it should just be removed.

@Sheepfan0828
Copy link
ContributorAuthor

Sheepfan0828 commentedOct 17, 2023
edited
Loading

@ksunden Sorry, what do you mean by that? I cannot understand, can you please explain it more specific?

@ksunden
Copy link
Member

This method falls into the category that passing datetimes to it directly does not make sense and therefore should just be removed (From#26864):

iii: If passing datetime / united data to the method does not make any sense or it should not work open a PR removing that test method and similarly reference this issue.

By callingto_ordinal here, you are not passing the datetime objects, and so are not doing what this test file is trying to exercise. This is because the idea of this test file does not make sense forpie, and therefore the xfail stub (the entire method) should just be removed altogether.

@Sheepfan0828
Copy link
ContributorAuthor

This method falls into the category that passing datetimes to it directly does not make sense and therefore should just be removed (From#26864):

iii: If passing datetime / united data to the method does not make any sense or it should not work open a PR removing that test method and similarly reference this issue.

By callingto_ordinal here, you are not passing the datetime objects, and so are not doing what this test file is trying to exercise. This is because the idea of this test file does not make sense forpie, and therefore the xfail stub (the entire method) should just be removed altogether.

So do you mean that is the method that i am testing with (pie this case) is not accepting datetime object so that the testing function forpie should be removed from the file? If so, i need to remove it fromtest_datetime.py right now and then create another pull request that i have removed thepie. Is that right?

@ksunden
Copy link
Member

You can update this PR, no need to make a new one, but yes, I am saying thatpie should just be removed from this file.

Sheepfan0828 reacted with thumbs up emoji

Copy link
Member

@ksundenksunden left a comment

Choose a reason for hiding this comment

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

I would suggest squash merging this (unless@Sheepfan0828 you wish to squash commitssee here)

rcomer reacted with thumbs up emoji
@rcomerrcomer changed the titleSmoke testing for axe.pieRemove datetime test for axes.pieOct 17, 2023
@rcomerrcomer merged commiteca4a34 intomatplotlib:mainOct 17, 2023
@rcomer
Copy link
Member

I took the liberty of updating the PR title as we are no longer smoke testing this method.

Thanks@Sheepfan0828 and congratulations on your first Matplotlib PR! We hope to hear from you again.

@rcomerrcomer added this to thev3.9.0 milestoneOct 17, 2023
@rcomerrcomer mentioned this pull requestOct 17, 2023
64 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@ksundenksundenksunden approved these changes

@rcomerrcomerrcomer approved these changes

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

Successfully merging this pull request may close these issues.

5 participants
@Sheepfan0828@ksunden@rcomer@QuLogic@u7277320

[8]ページ先頭

©2009-2025 Movatter.jp