[Numpy-svn] [numpy/numpy] 6ceb8a: TST: Correct empty square test case to actually be...

GitHub noreply at github.com
Tue Feb 21 14:37:15 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 6ceb8a4e64b1e934d6f9db7ce8a341843950fa56
      https://github.com/numpy/numpy/commit/6ceb8a4e64b1e934d6f9db7ce8a341843950fa56
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Correct empty square test case to actually be square

atleast_2d(array([], dtype=double)) returns an array of shape (1, 0), not (0, 0)


  Commit: 761f8d5409f8412134ee53d1e85125ff0044cc71
      https://github.com/numpy/numpy/commit/761f8d5409f8412134ee53d1e85125ff0044cc71
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Add some non-square 0-shaped test-cases


  Commit: eb753f8540e7c1085004fe8cb0d1fb863c1c9817
      https://github.com/numpy/numpy/commit/eb753f8540e7c1085004fe8cb0d1fb863c1c9817
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Correct pinv test case such that it doesn't fail correct cases


  Commit: 21a5142c0c5f85487f8de1bba45b0bf75fe8ecbf
      https://github.com/numpy/numpy/commit/21a5142c0c5f85487f8de1bba45b0bf75fe8ecbf
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Prevent non-square testcases being hidden by square ones (fix typo)


  Commit: 6b60a27aa2e9e83faa51b6f74b4f0e7c14b7f716
      https://github.com/numpy/numpy/commit/6b60a27aa2e9e83faa51b6f74b4f0e7c14b7f716
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Enable testing pinv on non-square matrices


  Commit: 340779f53b56d89aa4044af3b1a382e3e1a15592
      https://github.com/numpy/numpy/commit/340779f53b56d89aa4044af3b1a382e3e1a15592
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Adjust the precision of assert_almost_equal, but based on the type

SVD was previously being too generous with accuracy on doubles. This allows
pinv, the test for which was previously was too imprecise, to pass.


  Commit: c3442066006015dfa8be714686472434756bf83e
      https://github.com/numpy/numpy/commit/c3442066006015dfa8be714686472434756bf83e
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Refactor all the test case lists

Allows each individual function to inspect the flags of a certain test, and
decide whether an exception will be thrown


  Commit: b8f75f0fc73e1afc68c15fb0b9661f436c1f936a
      https://github.com/numpy/numpy/commit/b8f75f0fc73e1afc68c15fb0b9661f436c1f936a
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  TST: Correct test cases to actually make sense

These testcases were never used in the first place, due to a typo. This makes
their dimensions match the order of the other test cases, even though those
also did not run


  Commit: 835653064fc35c08bf001ef9a09c3127d7ea0be7
      https://github.com/numpy/numpy/commit/835653064fc35c08bf001ef9a09c3127d7ea0be7
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/linalg.py

  Log Message:
  -----------
  BUG: prevent np.linalg.eig ValueError when given a 0x0 array

Throw LinAlgError instead with an appropriate message


  Commit: b28ea1c57c9dba8feec7f616986f2e3e28dd6192
      https://github.com/numpy/numpy/commit/b28ea1c57c9dba8feec7f616986f2e3e28dd6192
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/linalg.py

  Log Message:
  -----------
  BUG: Raise LinAlgError from lstsq rather than a math domain error from math.log

We could make the log conditional on its argument being non-zero, but that entire expression is wrong anyway.
We could omit that calculation entirely and have LAPACK calculate it for us, but the routine in LAPACK is wrong anyway
We could upgrade the version of lapack shipped in lapack_lite, but the tool to do that is wrong anyway.

Let's leave that can of worms for another time, and just improve the error message for now.


  Commit: 08aa95f17472496c57b3945f60c17c15c6efcd10
      https://github.com/numpy/numpy/commit/08aa95f17472496c57b3945f60c17c15c6efcd10
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2016-12-19 (Mon, 19 Dec 2016)

  Changed paths:
    M numpy/linalg/linalg.py

  Log Message:
  -----------
  BUG: prevent np.linalg.eigh ValueError when given a 0x0 array

Throw LinAlgError instead with an appropriate message


  Commit: e6d81d991fafb7e57306ee784491f7913589756a
      https://github.com/numpy/numpy/commit/e6d81d991fafb7e57306ee784491f7913589756a
  Author: Eric Wieser <wieser.eric at gmail.com>
  Date:   2017-02-09 (Thu, 09 Feb 2017)

  Changed paths:
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  fixup! TST: Refactor all the test case lists


  Commit: 6b9a02a84c1ad3f69621dc7ae521098e7d9ef21a
      https://github.com/numpy/numpy/commit/6b9a02a84c1ad3f69621dc7ae521098e7d9ef21a
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M numpy/linalg/linalg.py
    M numpy/linalg/tests/test_linalg.py

  Log Message:
  -----------
  Merge pull request #8369 from eric-wieser/fix-broken-test

TST: Fix various incorrect linalg tests


Compare: https://github.com/numpy/numpy/compare/4e23f599fcd4...6b9a02a84c1a


More information about the Numpy-svn mailing list