[Numpy-svn] [numpy/numpy] c1153b: BUG: ma.median of 1d array should return a scalar

GitHub noreply at github.com
Sat May 21 23:34:35 EDT 2016


  Branch: refs/heads/maintenance/1.11.x
  Home:   https://github.com/numpy/numpy
  Commit: c1153b87e8d766095da0b39612f867b989674b38
      https://github.com/numpy/numpy/commit/c1153b87e8d766095da0b39612f867b989674b38
  Author: Amit Aronovitch <aronovitch at gmail.com>
  Date:   2016-05-21 (Sat, 21 May 2016)

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

  Log Message:
  -----------
  BUG: ma.median of 1d array should return a scalar

Fixes #5969.
Performance fix #4760 had caused wrong shaped results in the 1D case.
This fix restores the original 1D behavior.


  Commit: 1f8066600cc0d56f636f6ba2b2fd7bdb795dab22
      https://github.com/numpy/numpy/commit/1f8066600cc0d56f636f6ba2b2fd7bdb795dab22
  Author: Amit Aronovitch <aronovitch at gmail.com>
  Date:   2016-05-21 (Sat, 21 May 2016)

  Changed paths:
    M numpy/ma/extras.py

  Log Message:
  -----------
  STY: ma.extras.median: avoid indexing with list

Recommended type for nd-indexing is a tuple. See #4434


  Commit: a3f9135a21b1d48996354266249fc7bd8f29e0ae
      https://github.com/numpy/numpy/commit/a3f9135a21b1d48996354266249fc7bd8f29e0ae
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-05-21 (Sat, 21 May 2016)

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

  Log Message:
  -----------
  Merge pull request #7654 from charris/backport-7635

Backport 7635, BUG: ma.median of 1d array should return a scalar


Compare: https://github.com/numpy/numpy/compare/f92576298546...a3f9135a21b1


More information about the Numpy-svn mailing list