[Numpy-svn] [numpy/numpy] 42e5b8: BUG: Fix regression for in1d with non-array input

GitHub noreply@github....
Wed Dec 26 11:40:28 CST 2012


  Branch: refs/heads/maintenance/1.7.x
  Home:   https://github.com/numpy/numpy
  Commit: 42e5b80c1fc0ee83f4b364b6f27aa777bf48c5f5
      https://github.com/numpy/numpy/commit/42e5b80c1fc0ee83f4b364b6f27aa777bf48c5f5
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M numpy/lib/arraysetops.py
    M numpy/lib/tests/test_arraysetops.py

  Log Message:
  -----------
  BUG: Fix regression for in1d with non-array input

There was a regression introduced by the speed improvement in
commit 6441c2a. This fixes it, and generally ravels the arrays for
np.in1d. However it can be argued that at least the first array should
not be ravelled in the future.

Fixes "Issue gh-2755"


  Commit: bffea7a2c2d0388e920f5ab537a44c9d668b4a46
      https://github.com/numpy/numpy/commit/bffea7a2c2d0388e920f5ab537a44c9d668b4a46
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M numpy/lib/tests/test_arraysetops.py

  Log Message:
  -----------
  TST: Add test for in1d ravelling

The behavior of in1d is not really defined here, but it should
be at least consistent over different execution branches. This is
what it has been for most usages.


  Commit: 69c06da1d1488df7f048fe2071c4d6b91fd25c08
      https://github.com/numpy/numpy/commit/69c06da1d1488df7f048fe2071c4d6b91fd25c08
  Author: Ondřej Čertík <ondrej.certik@gmail.com>
  Date:   2012-12-26 (Wed, 26 Dec 2012)

  Changed paths:
    M numpy/lib/arraysetops.py
    M numpy/lib/tests/test_arraysetops.py

  Log Message:
  -----------
  Merge pull request #2854 from certik/backport2800

Backports #2800


Compare: https://github.com/numpy/numpy/compare/60df7b0726a4...69c06da1d148


More information about the Numpy-svn mailing list