summaryrefslogtreecommitdiffstats
path: root/python/astra
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 /python/astra
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 'python/astra')
-rw-r--r--python/astra/optomo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/astra/optomo.py b/python/astra/optomo.py
index dd10713..5a92998 100644
--- a/python/astra/optomo.py
+++ b/python/astra/optomo.py
@@ -125,7 +125,7 @@ class OpTomo(scipy.sparse.linalg.LinearOperator):
algorithm.delete(fp_id)
self.data_mod.delete([vid,sid])
- return s.flatten()
+ return s.ravel()
def rmatvec(self,s):
"""Implements the transpose operator.
@@ -147,7 +147,7 @@ class OpTomo(scipy.sparse.linalg.LinearOperator):
algorithm.delete(bp_id)
self.data_mod.delete([vid,sid])
- return v.flatten()
+ return v.ravel()
def __mul__(self,v):
"""Provides easy forward operator by *.