diff options
author | Brian Wignall <brianwignall@gmail.com> | 2020-01-14 07:27:33 -0500 |
---|---|---|
committer | Brian Wignall <brianwignall@gmail.com> | 2020-01-14 07:27:33 -0500 |
commit | b485da191ec08597835292e45f3ee52f3b1e23e5 (patch) | |
tree | 49d81469ad7574f206662cd586608d42e182f95f /numpy/lib/arraypad.py | |
parent | 266c588b393ea0d3b89d583e014e9befe654bed2 (diff) | |
download | numpy-b485da191ec08597835292e45f3ee52f3b1e23e5.tar.gz |
DOC: fix typos
Diffstat (limited to 'numpy/lib/arraypad.py')
-rw-r--r-- | numpy/lib/arraypad.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py index 247eed07c..7569e7651 100644 --- a/numpy/lib/arraypad.py +++ b/numpy/lib/arraypad.py @@ -232,7 +232,7 @@ def _get_linear_ramps(padded, axis, width_pair, end_value_pair): def _get_stats(padded, axis, width_pair, length_pair, stat_func): """ - Calculate statistic for the empty-padded array in given dimnsion. + Calculate statistic for the empty-padded array in given dimension. Parameters ---------- @@ -271,7 +271,7 @@ def _get_stats(padded, axis, width_pair, length_pair, stat_func): if (left_length == 0 or right_length == 0) \ and stat_func in {np.amax, np.amin}: - # amax and amin can't operate on an emtpy array, + # amax and amin can't operate on an empty array, # raise a more descriptive warning here instead of the default one raise ValueError("stat_length of 0 yields no value for padding") |