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
Regression: np.ma.masked_values(..., shrink=True) no longer works #11112
Comments
Numpy's string representation of arrays changed significantly from 1.13 to 1.14. See the [changelog]. We have to set the legacy representation mode for our doctests to be reproducible across both old and new versions of Numpy. There is a lingering issue with the doctest for `hp.reorder` that is due to a regression in Numpy. See numpy/numpy#11112. [changelog]: https://docs.scipy.org/doc/numpy-1.14.0/release.html#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode
@eric-wieser This looks like yours (and mine :), #10232. |
Numpy's string representation of arrays changed significantly from 1.13 to 1.14. See the [changelog]. We have to set the legacy representation mode for our doctests to be reproducible across both old and new versions of Numpy. There is a lingering issue with the doctest for `hp.reorder` that is due to a regression in Numpy. See numpy/numpy#11112. [changelog]: https://docs.scipy.org/doc/numpy-1.14.0/release.html#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode
This looks like a bug in |
So, the
This is only used in exactly one case - when This is super-specific, and not a reasonable interpretation of the documentation. So I think that we can probably add back the shrinking to |
We need to make a decision here. Just marking for future reference. |
@eric-wieser Could you make a PR with your suggestion here? |
This change was introduced as part of numpy#10232 Fixes numpy#11112
Looks like this changed because the |
This change was introduced as part of numpy#10232 Fixes numpy#11112
The documentation for
np.ma.masked_values()
explains the role of theshrink
option (which defaults to True) as follows:In Numpy <= 1.13.3, this works correctly:
In Numpy >= 1.14.0 and on master, it is broken:
The text was updated successfully, but these errors were encountered: