Skip to content

Commit adf357a

Browse files
committed
Fix for astropy#31
1 parent 04371a4 commit adf357a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎imageutils/array_utils.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def extract_array_2d(array_large, shape, position):
7676
7777
Examples
7878
--------
79-
We consider a large array of zeros with the shape 11x10 and a small
80-
array of ones with a shape of 3x4:
79+
We consider a large array with the shape 11x10, from which we extract
80+
a small array of shape 3x5:
8181
8282
>>> import numpy as np
8383
>>> from imageutils.array_utils import extract_array_2d
8484
>>> large_array = np.arange(110).reshape((11, 10))
8585
>>> large_array[4:9, 4:9] = np.ones((5, 5))
86-
>>> extract_array_2d(large_array, (3, 4), (7, 7))
86+
>>> extract_array_2d(large_array, (3, 5), (7, 7))
8787
array([[ 1, 1, 1, 1, 69],
8888
[ 1, 1, 1, 1, 79],
8989
[ 1, 1, 1, 1, 89]])

0 commit comments

Comments
 (0)