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

BUG: np.cov transpose control #27661

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

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

tylerjereddy
Copy link
Contributor

Copy link
Contributor

@jakevdp jakevdp left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@seberg
Copy link
Member

seberg commented Oct 29, 2024

Does this have a chance of breaking existing (bad) code in odd ways? (I.e. should we add a release note and consider probably not backport?)

@jakevdp
Copy link
Contributor

jakevdp commented Oct 29, 2024

The bug has existed for 19 years (I tracked the behavior to 959f36c via git blame) so probably no backport is necessary. We should treat it as a behavior change rather than a typical bug fix.

@ngoldbaum
Copy link
Member

I agree, let's add a release note and then merge this.

@ngoldbaum ngoldbaum added the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Oct 29, 2024
* Fixes numpy#27658

* Use a more sensible filter for controlling
the decision to transpose the design matrix
received by `np.cov`.

* Add a release note.
@tylerjereddy
Copy link
Contributor Author

Ok, I added a release note/towncrier fragment (amending the original commit since the diff is so small here).

The release note looks like this locally via spin docs:

image

@seberg
Copy link
Member

seberg commented Oct 29, 2024

Thanks Tyler and Jake!

@seberg seberg merged commit 8145832 into numpy:main Oct 29, 2024
63 of 65 checks passed
@tylerjereddy tylerjereddy deleted the treddy_issue_27658 branch October 29, 2024 18:41
@tylerjereddy tylerjereddy added this to the 2.2.0 release milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes component: numpy.lib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: np.cov with rowvar=False returns the wrong shape for N=1
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.