summaryrefslogtreecommitdiffstats
path: root/samples/python/s017_OpTomo.py
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-04-25 10:47:59 +0200
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-04-25 10:47:59 +0200
commit1e26f7602b6685c584fd4d857353f390622e3a34 (patch)
treeb6a494550b24896c10ffda19cdebe02b9c699221 /samples/python/s017_OpTomo.py
parent8b67986464daae799d0171aed70a0d2cd96fd8d1 (diff)
downloadastra-1e26f7602b6685c584fd4d857353f390622e3a34.tar.gz
astra-1e26f7602b6685c584fd4d857353f390622e3a34.tar.bz2
astra-1e26f7602b6685c584fd4d857353f390622e3a34.tar.xz
astra-1e26f7602b6685c584fd4d857353f390622e3a34.zip
Change flatten to ravel in Python code
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)