@@ -1299,12 +1299,12 @@ def convolve(in1, in2, mode='full', method='auto'):
1299
1299
1300
1300
def order_filter (a , domain , rank ):
1301
1301
"""
1302
- Perform an order filter on an N-dimensional array.
1302
+ Perform an order filter on an N-D array.
1303
1303
1304
- Perform an order filter on the array in. The domain argument acts as a
1305
- mask centered over each pixel. The non-zero elements of domain are
1304
+ Perform an order filter on the array in. The domain argument acts as a
1305
+ mask centered over each pixel. The non-zero elements of domain are
1306
1306
used to select elements surrounding each input pixel which are placed
1307
- in a list. The list is sorted, and the output for that pixel is the
1307
+ in a list. The list is sorted, and the output for that pixel is the
1308
1308
element corresponding to rank in the sorted list.
1309
1309
1310
1310
Parameters
@@ -1538,7 +1538,7 @@ def convolve2d(in1, in2, mode='full', boundary='fill', fillvalue=0):
1538
1538
in2 = np .asarray (in2 )
1539
1539
1540
1540
if not in1 .ndim == in2 .ndim == 2 :
1541
- raise ValueError ('convolve2d inputs must both be 2D arrays' )
1541
+ raise ValueError ('convolve2d inputs must both be 2-D arrays' )
1542
1542
1543
1543
if _inputs_swap_needed (mode , in1 .shape , in2 .shape ):
1544
1544
in1 , in2 = in2 , in1
@@ -1628,7 +1628,7 @@ def correlate2d(in1, in2, mode='full', boundary='fill', fillvalue=0):
1628
1628
in2 = np .asarray (in2 )
1629
1629
1630
1630
if not in1 .ndim == in2 .ndim == 2 :
1631
- raise ValueError ('correlate2d inputs must both be 2D arrays' )
1631
+ raise ValueError ('correlate2d inputs must both be 2-D arrays' )
1632
1632
1633
1633
swapped_inputs = _inputs_swap_needed (mode , in1 .shape , in2 .shape )
1634
1634
if swapped_inputs :
@@ -3924,7 +3924,7 @@ def _validate_pad(padtype, padlen, x, axis, ntaps):
3924
3924
def _validate_x (x ):
3925
3925
x = np .asarray (x )
3926
3926
if x .ndim == 0 :
3927
- raise ValueError ('x must be at least 1D ' )
3927
+ raise ValueError ('x must be at least 1-D ' )
3928
3928
return x
3929
3929
3930
3930
0 commit comments