Skip to content

Temporary fix problems with Quantity.__class_getitem__ - #12511

Merged
nstarman merged 2 commits into
astropy:mainfrom
mhvk:temporary-fix-for-numpy-dev-typing-error
Nov 22, 2021
Merged

nstarman merged 2 commits into
astropy:mainfrom
mhvk:temporary-fix-for-numpy-dev-typing-error

Conversation

@mhvk

@mhvk mhvk commented Nov 21, 2021 •

Copy link
Copy Markdown
Contributor

Not a permanent fix, but we need to get the tests running again!

EDIT: also include a fix for Masked no longer working with np.quantile.

@mhvk
mhvk force-pushed the temporary-fix-for-numpy-dev-typing-error branch from 3acfeb0 to 17e281e Compare November 21, 2021 20:46
@mhvk

mhvk commented Nov 21, 2021

Copy link
Copy Markdown
Contributor Author

Hmm, looks like there are other numpy-dev problems too... Sigh.

@nstarman

Copy link
Copy Markdown
Member

I can take a look at this later tonight.

@mhvk
mhvk force-pushed the temporary-fix-for-numpy-dev-typing-error branch from 0857e9f to 997417c Compare November 22, 2021 00:36
@mhvk

mhvk commented Nov 22, 2021

Copy link
Copy Markdown
Contributor Author

OK, added a commit to fix the other numpy-dev problems...

@mhvk

mhvk commented Nov 22, 2021

Copy link
Copy Markdown
Contributor Author

OK, looks like all tests now pass again, which will help unblock everything else. Given that, cc @pllim...

@nstarman nstarman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The NDArray.__class_getitem__ looks good to me.

@nstarman
nstarman merged commit bf18eb5 into astropy:main Nov 22, 2021
@pllim

pllim commented Nov 22, 2021 •

Copy link
Copy Markdown
Member

Thanks! Is there a follow-up issue for a proper fix?

Update: I found #12510

@pllim

pllim commented Nov 22, 2021

Copy link
Copy Markdown
Member

@meeseeksdev backport to v5.0.x

@pllim

pllim commented Nov 22, 2021

Copy link
Copy Markdown
Member

For future reference, when you intend to merge a PR milestoned for v5.0.x, please also add a backport-v5.0.x label before merge. Thanks!

pllim added a commit that referenced this pull request Nov 22, 2021
…511-on-v5.0.x

Backport PR #12511 on branch v5.0.x (Temporary fix problems with Quantity.__class_getitem__)
@mhvk
mhvk deleted the temporary-fix-for-numpy-dev-typing-error branch December 20, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants