[Numpy-svn] [numpy/numpy] 0c2cde: BUG: fix ma.median for empty ndarrays

GitHub noreply at github.com
Mon Feb 27 18:13:34 EST 2017


  Branch: refs/heads/maintenance/1.12.x
  Home:   https://github.com/numpy/numpy
  Commit: 0c2cde41ad02b8737d5572e296e19046590ba8b4
      https://github.com/numpy/numpy/commit/0c2cde41ad02b8737d5572e296e19046590ba8b4
  Author: Julian Taylor <jtaylor.debian at googlemail.com>
  Date:   2017-02-27 (Mon, 27 Feb 2017)

  Changed paths:
    M numpy/ma/extras.py
    M numpy/ma/tests/test_extras.py

  Log Message:
  -----------
  BUG: fix ma.median for empty ndarrays

return nan as it did in 1.11 and same as normal median.
closes gh-8703


  Commit: e50b4cbd80fa83b66819af9a57a935aea0d216b3
      https://github.com/numpy/numpy/commit/e50b4cbd80fa83b66819af9a57a935aea0d216b3
  Author: Julian Taylor <juliantaylor108 at gmail.com>
  Date:   2017-02-28 (Tue, 28 Feb 2017)

  Changed paths:
    M numpy/ma/extras.py
    M numpy/ma/tests/test_extras.py

  Log Message:
  -----------
  Merge pull request #8707 from juliantaylor/ma-median-empty-1.12

backport ma.median fix gh-8703 to 1.12


Compare: https://github.com/numpy/numpy/compare/9a8e8298d0ba...e50b4cbd80fa


More information about the Numpy-svn mailing list