Skip to content

Commit b07aaff

Browse files
HastingsGreerthewtex
authored andcommitted
DOC: add need_contiguous to GetImageViewFromArray docstring
1 parent cd9cf8d commit b07aaff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/Bridge/NumPy/wrapping/PyBuffer.i.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
inverts the indexing scheme, the Image representation will be the
7373
same for an array and its transpose. If flipping is desired, see
7474
*np.reshape*.
75+
76+
By default, a warning is issued if this function is called on a non-contiguous
77+
array, since a copy is performed and care must be taken to keep a reference
78+
to the copied array. This warning can be suppressed with need_contiguous=False
7579
"""
7680

7781
assert ndarr.ndim in (1, 2, 3, 4, 5), \

0 commit comments

Comments
 (0)