summaryrefslogtreecommitdiffstats
path: root/samples/python/s017_OpTomo.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-04-25 11:22:49 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2016-04-25 11:22:49 +0200
commit3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f (patch)
treeb6a494550b24896c10ffda19cdebe02b9c699221 /samples/python/s017_OpTomo.py
parent8b67986464daae799d0171aed70a0d2cd96fd8d1 (diff)
parent1e26f7602b6685c584fd4d857353f390622e3a34 (diff)
downloadastra-3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f.tar.gz
astra-3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f.tar.bz2
astra-3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f.tar.xz
astra-3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f.zip
Merge pull request #49 from dmpelt/flatten_to_ravel
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)