Skip to content

Commit c556d3d

Browse files
committed
arr_snap: return array laid out in Fortran order
1 parent f97b778 commit c556d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def arr_snap(self):
316316
np = numpy.frombuffer(data, numpy.uint16)
317317
else:
318318
raise RuntimeError("Unexpected sample size: %d" % sampleSize)
319-
return numpy.reshape(np, (samples, width, height))
319+
return numpy.asfortranarray(numpy.reshape(np, (samples, width, height)))
320320

321321
def arr_scan(self):
322322
"""

0 commit comments

Comments
 (0)