[Numpy-svn] [numpy/numpy] fe62f1: BUG: field assignment in masked array did not rese...

GitHub noreply@github....
Sun Jun 16 19:42:10 CDT 2013


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: fe62f174ac89673c20ddaf27fa545c08ac70d74a
      https://github.com/numpy/numpy/commit/fe62f174ac89673c20ddaf27fa545c08ac70d74a
  Author: Eric Firing <efiring@hawaii.edu>
  Date:   2013-06-16 (Sun, 16 Jun 2013)

  Changed paths:
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py

  Log Message:
  -----------
  BUG: field assignment in masked array did not reset mask; closes #2403

The previous behavior when setting a field after indexing to
select an element was suitable for the hard mask case, but
not for the default soft mask.  In addition, the _hardmask
value was not being set at all in the mvoid instance.  With
this changeset, the _hardmask is passed in and __setitem__
takes it into account.

Conflicts:

	numpy/ma/core.py


  Commit: 5ba9fead691439697c6d1c3768d4205cbe822bc2
      https://github.com/numpy/numpy/commit/5ba9fead691439697c6d1c3768d4205cbe822bc2
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-16 (Sun, 16 Jun 2013)

  Changed paths:
    M numpy/ma/core.py
    M numpy/ma/tests/test_core.py

  Log Message:
  -----------
  Merge pull request #3450 from efiring/mvoid_setitem_1.7.x

BUG: field assignment in masked array did not reset mask; closes #2403


Compare: https://github.com/numpy/numpy/compare/0f537d8e16aa...5ba9fead6914


More information about the Numpy-svn mailing list