summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-08-27 11:42:17 -0500
committerGitHub <noreply@github.com>2017-08-27 11:42:17 -0500
commited805307a3a30e9990dca0a7cac73618fc6c3f21 (patch)
treeed1ad8a672601c0dff5d6d069328ee06748df9db /doc
parent4e0d44c6e722b106df431b7d2e53cf4d82d32d6a (diff)
parente1ccca947a297deb90301acc14b1e13e8dd0b816 (diff)
downloadnumpy-ed805307a3a30e9990dca0a7cac73618fc6c3f21.tar.gz
Merge pull request #9432 from eric-wieser/masked-0d-methods
BUG: Fix loss of masks in masked 0d methods
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.14.0-notes.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/1.14.0-notes.rst b/doc/release/1.14.0-notes.rst
index 45227ae2b..bc7950257 100644
--- a/doc/release/1.14.0-notes.rst
+++ b/doc/release/1.14.0-notes.rst
@@ -100,6 +100,14 @@ This is for pytest compatibility in the case of duplicate test file names in
the different directories. As a result, ``run_module_suite`` no longer works,
i.e., ``python <path-to-test-file>`` results in an error.
+``MaskedArray.squeeze`` never returns ``np.ma.masked``
+------------------------------------------------------
+``np.squeeze`` is documented as returning a view, but the masked variant would
+sometimes return ``masked``, which is not a view. This has been fixed, so that
+the result is always a view on the original masked array.
+This breaks any code that used ``masked_arr.squeeze() is np.ma.masked``, but
+fixes code that writes to the result of `.squeeze()`.
+
C API changes
=============