[Numpy-svn] [numpy/numpy] 37ee08: BUG: Make sure we don't divide by zero in np.polyf...
GitHub
noreply at github.com
Wed Jun 15 15:03:36 EDT 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 37ee08dc9c7cbe0cf8a671c8cc73877d1a142ee1
https://github.com/numpy/numpy/commit/37ee08dc9c7cbe0cf8a671c8cc73877d1a142ee1
Author: David Schaich <daschaich at gmail.com>
Date: 2016-06-15 (Wed, 15 Jun 2016)
Changed paths:
M numpy/lib/polynomial.py
Log Message:
-----------
BUG: Make sure we don't divide by zero in np.polyfit.
This should fix the issue discussed at
https://mail.scipy.org/pipermail/numpy-discussion/2013-July/067076.html
Without the ValueError added here, polyfit can (and does) return
negative or nan variances with no warning.
Commit: 330291ffcba6d00b6534bcf80107f3baea5b48a4
https://github.com/numpy/numpy/commit/330291ffcba6d00b6534bcf80107f3baea5b48a4
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-06-15 (Wed, 15 Jun 2016)
Changed paths:
M numpy/lib/polynomial.py
M numpy/lib/tests/test_polynomial.py
Log Message:
-----------
TST: Test that polyfit raises if not enough data for cov estimate.
Also a slight refactoring of np.polyfit.
Commit: 96030cd8f29828fccea16f681f50a749bb836af0
https://github.com/numpy/numpy/commit/96030cd8f29828fccea16f681f50a749bb836af0
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-06-15 (Wed, 15 Jun 2016)
Changed paths:
M numpy/lib/polynomial.py
M numpy/lib/tests/test_polynomial.py
Log Message:
-----------
Merge pull request #7747 from charris/update-7672
Update 7672, BUG: Make sure we don't divide by zero
Compare: https://github.com/numpy/numpy/compare/e26738a628de...96030cd8f298
More information about the Numpy-svn
mailing list