[Numpy-svn] [numpy/numpy] c6ce29: BUG: Allow to pad arrays by zero entries.

GitHub noreply@github....
Sun Jul 7 18:15:58 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: c6ce294f6feeebcdf67b238564c770387be933a5
      https://github.com/numpy/numpy/commit/c6ce294f6feeebcdf67b238564c770387be933a5
  Author: Jostein Bø Fløystad <jostein.floystad@gmail.com>
  Date:   2013-07-05 (Fri, 05 Jul 2013)

  Changed paths:
    M numpy/lib/arraypad.py

  Log Message:
  -----------
  BUG: Allow to pad arrays by zero entries.

np.pad will now accept a pad_width containing zeros. The functionality
was already implemented, but validation of input was too strict.


  Commit: ea45134062693723c2258b862f87d3750a8dc564
      https://github.com/numpy/numpy/commit/ea45134062693723c2258b862f87d3750a8dc564
  Author: Jostein Bø Fløystad <jostein.floystad@gmail.com>
  Date:   2013-07-05 (Fri, 05 Jul 2013)

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

  Log Message:
  -----------
  TST: New test to ensure np.pad allows pad_width of zero.


  Commit: df041a94c8bfc8dcff2d1abfe0eb6eebbff9d8bd
      https://github.com/numpy/numpy/commit/df041a94c8bfc8dcff2d1abfe0eb6eebbff9d8bd
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-07-07 (Sun, 07 Jul 2013)

  Changed paths:
    M numpy/lib/arraypad.py
    M numpy/lib/tests/test_arraypad.py

  Log Message:
  -----------
  Merge pull request #3506 from josteinbf/arraypad-padwidth-zero

Allow pad_width of zero in np.pad


Compare: https://github.com/numpy/numpy/compare/79188b21dd85...df041a94c8bf


More information about the Numpy-svn mailing list