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

BUG: Fix missing dtype reset in MaskedRecords.view() when dtype is ndarray subclass#30442

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

Open
sabasiddique1 wants to merge2 commits intonumpy:main
base:main
Choose a base branch
Loading
fromsabasiddique1:fix-30441

Conversation

@sabasiddique1
Copy link

Description

Fixes a bug inMaskedRecords.view() where thedtype = None assignment was missing whendtype is an ndarray subclass, causing both branches of an if/else statement to have identical code.

Changes

  • Added missingdtype = None assignment on line 367 in theif issubclass(dtype, np.ndarray): branch ofMaskedRecords.view() method
  • Added testtest_view_ndarray_subclass_resets_dtype() to verify the fix
  • This matches the reference implementation innumpy/ma/core.py (line 3272)

Related Issue

Fixes#30441

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BUG: MaskedRecords.view(): Missing dtype reset when dtype is ndarray subclass

2 participants

@sabasiddique1@jorenham

[8]ページ先頭

©2009-2025 Movatter.jp