summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-04-29 17:21:37 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-04-29 17:22:57 -0700
commitc57e6d61ce1f4c1625e903b5a09566954b583e6c (patch)
tree2f01274230f2370376c68e1aac868ff91faf503c /numpy/lib/tests/test_function_base.py
parentdadfb545e1cc8d873b999d82d331c0c58f11901f (diff)
downloadnumpy-c57e6d61ce1f4c1625e903b5a09566954b583e6c.tar.gz
MAINT: Remove singleton-dimension insertion in np.pad in favor of not losing the dimension in the first place.
`arr[:,:,0,:,:].reshape(arr.shape[:2] + (1,) + arr.shape[3:])` is much more readable as `arr[:,:,0:1,:,:]` (and easier for subclasses to handle)
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions