[Numpy-svn] [numpy/numpy] 21a1d7: BUG: allow any axis for np.concatenate for 1D

GitHub noreply@github....
Mon Sep 24 11:32:55 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 21a1d73627992d4d904150a0056ae8d55af6f1b5
      https://github.com/numpy/numpy/commit/21a1d73627992d4d904150a0056ae8d55af6f1b5
  Author: Matthew Brett <matthew.brett@gmail.com>
  Date:   2012-09-16 (Sun, 16 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/tests/test_shape_base.py

  Log Message:
  -----------
  BUG: allow any axis for np.concatenate for 1D

Previous numpies allowed the user to pass any integer as axis argument
to np.concatenate, when the input arrays were 1D.  At some point we
tightened up on this, raising an error for axis values other than 0.
This raises a FutureWarning for axis numbers != 0, but allows them, for
backwards compatibility.


  Commit: 4475eadaa879cdc82f5331abc22ab47b99e6b040
      https://github.com/numpy/numpy/commit/4475eadaa879cdc82f5331abc22ab47b99e6b040
  Author: Matthew Brett <matthew.brett@gmail.com>
  Date:   2012-09-16 (Sun, 16 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/tests/test_shape_base.py

  Log Message:
  -----------
  BUG: change FutureWarning to DeprecationWarning

Use of PyErr_WarnEx causing failure for Python 2.4.


  Commit: 69afd27b870cd85f06c4409fcffd0734ddb2fe76
      https://github.com/numpy/numpy/commit/69afd27b870cd85f06c4409fcffd0734ddb2fe76
  Author: Matthew Brett <matthew.brett@gmail.com>
  Date:   2012-09-16 (Sun, 16 Sep 2012)

  Changed paths:
    M numpy/core/tests/test_shape_base.py

  Log Message:
  -----------
  TST: test DeprecationWarning raised by concatenate

>From review by Nathaniel - thanks.


  Commit: 6a847ef7361f4ab4910e69f20cb740d4a2eca4b6
      https://github.com/numpy/numpy/commit/6a847ef7361f4ab4910e69f20cb740d4a2eca4b6
  Author: njsmith <njs@pobox.com>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/tests/test_shape_base.py

  Log Message:
  -----------
  Merge pull request #440 from matthew-brett/crazy-axis-concat-warning

BUG: allow any axis for np.concatenate for 1D


Compare: https://github.com/numpy/numpy/compare/c8010d0ebca7...6a847ef7361f


More information about the Numpy-svn mailing list