Skip to content

Commit 368fdaf

Browse files
committed
Revert numpy.asfortran, instead reshape to '(height, width, samples)'
1 parent c556d3d commit 368fdaf

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.asfortranarray(numpy.reshape(np, (samples, width, height)))
319+
return numpy.reshape(np, (height, width, samples))
320320

321321
def arr_scan(self):
322322
"""

0 commit comments

Comments
 (0)