diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-12-06 21:53:45 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-12-15 09:13:27 -0700 |
commit | 008e5e9c6ee24b6675dc582373c4a14cbe5ec22e (patch) | |
tree | 0cd387357a9d49b3e6d219bd83875d57d361ba58 /numpy/ma/tests/test_extras.py | |
parent | eb042bf3bf192c3652b959c2f75ee79225b252b5 (diff) | |
download | numpy-008e5e9c6ee24b6675dc582373c4a14cbe5ec22e.tar.gz |
TST: Add test for weight modification.
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r-- | numpy/ma/tests/test_extras.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py index be995d617..f1b36a15d 100644 --- a/numpy/ma/tests/test_extras.py +++ b/numpy/ma/tests/test_extras.py @@ -632,11 +632,13 @@ class TestPolynomial(TestCase): assert_almost_equal(a, a_) # w = np.random.rand(10) + 1 + wo = w.copy() xs = x[1:-1] ys = y[1:-1] ws = w[1:-1] (C, R, K, S, D) = polyfit(x, y, 3, full=True, w=w) (c, r, k, s, d) = np.polyfit(xs, ys, 3, full=True, w=ws) + assert_equal(w, wo) for (a, a_) in zip((C, R, K, S, D), (c, r, k, s, d)): assert_almost_equal(a, a_) |