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

MNT/TST: remove xcorr and acorr from test_datetime#27427

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
QuLogic merged 3 commits intomatplotlib:mainfromjklymak:mnt-remove-xcorr-acorr
Dec 6, 2023

Conversation

jklymak
Copy link
Member

Currentlyxcorr andacorr are intest_datetimes.py. However, I think it is highly unlikely anyone would want to pass datetimes in asx values to either of these methods. It is also not clear what giving the unit conversion means for these arguments. Modified the docstrings to make this clear.

@jklymakjklymak mentioned this pull requestDec 3, 2023
64 tasks
@story645
Copy link
Member

However, I think it is highly unlikely anyone would want to pass datetimes in as x values to either of these methods

If we claim to support it, i.e. this participates in units, then it should probably be tested. Also timedeltas are common for thesehttps://online.stat.psu.edu/stat462/node/188/

@jklymak
Copy link
MemberAuthor

Xcorr and acorr do not participate in units.

Both work by assuming x and y are spaced equally in time (or space). You can of course assign units to the lags, but we do not try to do this in xcorr/acorr.

@story645
Copy link
Member

Xcorr and acorr do not participate in units.

It might be good to generate a table of what participates in units and what doesn't, possibly added either tohttps://matplotlib.org/devdocs/users/explain/axes/axes_units.html#more-about-unit-support orhttps://matplotlib.org/devdocs/api/units_api.html

Copy link
Member

@oscargusoscargus left a comment

Choose a reason for hiding this comment

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

I agree that these should be removed. Some formatting, although I think that this probably should not go on the same line. Maybe better to add it on the next line? Or as an admonition?

@@ -2055,7 +2056,9 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,

Parameters
----------
x, y : array-like of length n
x, y : array-like of length n. Neither x nor y are run through
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
x,y :array-likeoflengthn.Neitherxnoryarerunthrough
x,y :array-likeoflengthn.Neither*x*nor*y*arerunthrough

jklymak reacted with thumbs up emoji
@jklymakjklymakforce-pushed themnt-remove-xcorr-acorr branch 2 times, most recently from07ed125 to1f37e49CompareDecember 4, 2023 23:39
@QuLogicQuLogic merged commite13216e intomatplotlib:mainDec 6, 2023
@QuLogicQuLogic added this to thev3.9.0 milestoneDec 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@oscargusoscargusoscargus left review comments

@QuLogicQuLogicQuLogic approved these changes

@ksundenksundenksunden 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
@jklymak@story645@QuLogic@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp