8000 BUG: np.ma.where does not handle structured dtypes correctly · Issue #8600 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: np.ma.where does not handle structured dtypes correctly #8600

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

Closed
eric-wieser opened this issue Feb 10, 2017 · 0 comments
Closed

BUG: np.ma.where does not handle structured dtypes correctly #8600

eric-wieser opened this issue Feb 10, 2017 · 0 comments

Comments

@eric-wieser
Copy link
Member
>>> dt = np.dtype([('a', int), ('b', int)])
>>> x = np.array([(1, 2), (3, 4)], dtype=dt)
>>> np.where([0, 1], x, np.array((2, 3), dtype=dt)).dtype
dtype([('a', '<i4'), ('b', '<i4')])
>>> np.ma.where([0, 1], x, np.array((2, 3), dtype=dt)).dtype
dtype('O')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0