diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2016-04-25 11:22:49 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2016-04-25 11:22:49 +0200 |
commit | 3afc1cf2bfd03255390d4a8862dfe8d9a7086a9f (patch) | |
tree | b6a494550b24896c10ffda19cdebe02b9c699221 /python | |
parent | 8b67986464daae799d0171aed70a0d2cd96fd8d1 (diff) | |
parent | 1e26f7602b6685c584fd4d857353f390622e3a34 (diff) | |
download | astra-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 'python')
-rw-r--r-- | python/astra/optomo.py | 4 |
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 *. |