[Numpy-svn] [numpy/numpy] 9df514: BUG: numpy.ma.polyfit masks NaNs incorrectly

GitHub noreply at github.com
Sun Feb 22 14:49:38 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 9df514382c0b7c8fdaa979f66054285d69afee4d
      https://github.com/numpy/numpy/commit/9df514382c0b7c8fdaa979f66054285d69afee4d
  Author: Simon Gibbons <simongibbons at gmail.com>
  Date:   2015-02-21 (Sat, 21 Feb 2015)

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

  Log Message:
  -----------
  BUG: numpy.ma.polyfit masks NaNs incorrectly

This fixes the incorrect handing of masked NaNs by
``np.ma.polyfit``. Instead of passing the mask into
``np.polyfit`` by setting the weight of the masked
points to zero, the subset of elements of which are
to be fitted are passed instead.

Closes #5591


  Commit: f896f50fc8b4ad6a38eda286ed0d3d5560759ead
      https://github.com/numpy/numpy/commit/f896f50fc8b4ad6a38eda286ed0d3d5560759ead
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-22 (Sun, 22 Feb 2015)

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

  Log Message:
  -----------
  Merge pull request #5592 from simongibbons/ma_polyfit_fix

BUG: numpy.ma.polyfit masks NaNs incorrectly


Compare: https://github.com/numpy/numpy/compare/d770034969e3...f896f50fc8b4


More information about the Numpy-svn mailing list