8000 BUG: Enforce Order Param for MaskedArray Construction by gfyoung · Pull Request #6912 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Enforce Order Param for MaskedArray Construction #6912

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
Jan 15, 2016
Merged

BUG: Enforce Order Param for MaskedArray Construction #6912

merged 1 commit into from
Jan 15, 2016

Conversation

gfyoung
Copy link
Contributor
@gfyoung gfyoung commented Dec 31, 2015

Addresses the issue in #6646 in which the order parameter was not being enforced. This PR adds the order parameter to the __new__ override in MaskedArray construction, enabling it to be enforced in methods like np.ma.core.array and np.ma.core.asarray.

@gfyoung < 8000 a class="author Link--primary text-bold" data-hovercard-type="user" data-hovercard-url="/users/gfyoung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/gfyoung">gfyoung changed the title ENH: Enforce Order Param for MaskedArray Construction BUG: Enforce Order Param for MaskedArray Construction Jan 5, 2016
@gfyoung
Copy link
Contributor Author
gfyoung commented Jan 9, 2016

Is this good to merge? Does someone want to take a look at this? Did I miss any other places where I should include/enforce the order param for MaskedArray?

x = MaskedArray(data, mask=nomask, dtype=None,
copy=False, subok=True, ndmin=0, fill_value=None,
x = MaskedArray(data, mask=nomask, dtype=None, copy=False
order=None, subok=True, ndmin=0, fill_value=None,
Copy link
Member

Choose a reason for hiding this comment

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

Should add the new parameter at the end just on general principles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@gfyoung
Copy link
Contributor Author
gfyoung commented Jan 14, 2016

@charris : Changes have been made, and Travis and Appveyor are still happy.

@charris
Copy link
Member
charris commented Jan 14, 2016

Could you add a mention in 1.11.0-notes.rst?

Adds the 'order' parameter to the __new__ override
in MaskedArray construction, enabling it to be enforced
in methods like np.ma.core.array and np.ma.core.asarray.

Closes gh-6646.
@gfyoung
Copy link
Contributor Author
gfyoung commented Jan 15, 2016

@charris : Added mention in release notes.

charris added a commit that referenced this pull request Jan 15, 2016
BUG: Enforce Order Param for MaskedArray Construction
@charris charris merged commit aa6335c into numpy:master Jan 15, 2016
@charris
Copy link
Member
charris commented Jan 15, 2016

Thanks @gfyoung .

@gfyoung gfyoung deleted the asarray_order branch January 15, 2016 01:59
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.

2 participants
0