summaryrefslogtreecommitdiffstats
path: root/samples/python/s017_OpTomo.py
diff options
context:
space:
mode:
Diffstat (limited to 'samples/python/s017_OpTomo.py')
-rw-r--r--samples/python/s017_OpTomo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/python/s017_OpTomo.py b/samples/python/s017_OpTomo.py
index 967fa64..214e9a7 100644
--- a/samples/python/s017_OpTomo.py
+++ b/samples/python/s017_OpTomo.py
@@ -50,7 +50,7 @@ pylab.figure(2)
pylab.imshow(sinogram)
# Run the lsqr linear solver
-output = scipy.sparse.linalg.lsqr(W, sinogram.flatten(), iter_lim=150)
+output = scipy.sparse.linalg.lsqr(W, sinogram.ravel(), iter_lim=150)
rec = output[0].reshape([256, 256])
pylab.figure(3)