8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Repro:
>>> dt = np.dtype([('value', int, 3)]) >>> m = np.ma.array(([1, 2, 3],), dtype=dt, fill_value=([10, 20, 30],)) masked_array(data = ([1, 2, 3],), mask = ([False, False, False],), fill_value = ([10, 10, 10],), # wrong! dtype = [('value', '<i4', (3,))])
Or perhaps more alarmingly:
>>> m = np.ma.array(([1, 2, 3],), dtype=dt) >>> m.fill_value['value'][1] = 20 masked_array(data = ([1, 2, 3],), mask = ([False, False, False],), fill_value = ([10, 20, 10],), # OK! dtype = [('value', '<i4', (3,))]) >>> np.ma.array(m) masked_array(data = ([1, 2, 3],), mask = ([False, False, False],), fill_value = (10,), # Wait, what? dtype = [('value', '<i4', (3,))])
Is any of this by design? Surely m.dtype == m.fill_value.dtype is an invariant?
m.dtype == m.fill_value.dtype
The text was updated successfully, but these errors were encountered:
There was an 6ED3 error while loading. Please reload this page.
e2df0c7 by @pierregm introduced this peculiar line that breaks this invariant, without any obvious rationale.
It's possible that this was trying to preempt #6723
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Repro:
Or perhaps more alarmingly:
Is any of this by design? Surely
m.dtype == m.fill_value.dtype
is an invariant?The text was updated successfully, but these errors were encountered: