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

GitHub noreply@github....
Fri Dec 21 07:01:51 CST 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 6d3950c8ac3ad6088a473acc7d68ba405c14267c
      https://github.com/numpy/numpy/commit/6d3950c8ac3ad6088a473acc7d68ba405c14267c
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-12-08 (Sat, 08 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: b0ac985036918c39322e18d06bd69523cfef9e39
      https://github.com/numpy/numpy/commit/b0ac985036918c39322e18d06bd69523cfef9e39
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2012-12-15 (Sat, 15 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: 3abd8699dc3c71e389356ca6d80a2cb9efa16151
      https://github.com/numpy/numpy/commit/3abd8699dc3c71e389356ca6d80a2cb9efa16151
  Author: njsmith <njs@pobox.com>
  Date:   2012-12-21 (Fri, 21 Dec 2012)

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

  Log Message:
  -----------
  Merge pull request #2800 from seberg/issue2755

BUG: Fix regression for in1d with non-array input


Compare: https://github.com/numpy/numpy/compare/c9325530b499...3abd8699dc3c


More information about the Numpy-svn mailing list