summaryrefslogtreecommitdiff
path: root/numpy/doc/indexing.py
diff options
context:
space:
mode:
authorGerrit Holl <gerrit.holl@utoronto.ca>2015-01-28 19:25:07 -0500
committerCharles Harris <charlesr.harris@gmail.com>2015-05-02 09:53:56 -0600
commita7d663f0f36c296caef7494d167b32407d6c3856 (patch)
treec229e41aa3f0920e2ad9326d298dafbfaf6128a1 /numpy/doc/indexing.py
parent38cb7aa3815748c1d719e918718b7726a18ed1fc (diff)
downloadnumpy-a7d663f0f36c296caef7494d167b32407d6c3856.tar.gz
BUG: Fix mask assignment in masked_where to use .mask property.
This commit fixes a bug in numpy.ma.masked_where when it is passed a structured array. masked_where was inadvertently setting the _mask field of a structured array to a non-structured array, so we would end up with a masked structured array where x.data was structured, but x.mask was not. This led to troubles for methods such as __getitem__, __repr__, and tolist. By writing to the property .mask instead of ._mask, this problem is fixed. Closes #2972.
Diffstat (limited to 'numpy/doc/indexing.py')
0 files changed, 0 insertions, 0 deletions