summaryrefslogtreecommitdiffstats
path: root/python/astra
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-05-22 14:36:42 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-05-26 16:40:52 +0200
commit0f577d1fbc2b0c15d85f18cc38eb14e3cbf6c6a2 (patch)
treedcb4f9b59dcdf6ec550d4a15b54a0cc482fc03b2 /python/astra
parent57668bcdd086145eb14598e32fd5d0dca711865c (diff)
downloadastra-0f577d1fbc2b0c15d85f18cc38eb14e3cbf6c6a2.tar.gz
astra-0f577d1fbc2b0c15d85f18cc38eb14e3cbf6c6a2.tar.bz2
astra-0f577d1fbc2b0c15d85f18cc38eb14e3cbf6c6a2.tar.xz
astra-0f577d1fbc2b0c15d85f18cc38eb14e3cbf6c6a2.zip
Fix optomo reconstruction for 1D input
Diffstat (limited to 'python/astra')
-rw-r--r--python/astra/optomo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/astra/optomo.py b/python/astra/optomo.py
index 2937d9c..0108674 100644
--- a/python/astra/optomo.py
+++ b/python/astra/optomo.py
@@ -164,7 +164,7 @@ class OpTomo(scipy.sparse.linalg.LinearOperator):
:param extraOptions: Extra options to use during reconstruction (i.e. for cfg['option']).
:type extraOptions: :class:`dict`
"""
- self.__checkArray(s, self.sshape)
+ s = self.__checkArray(s, self.sshape)
sid = self.data_mod.link('-sino',self.pg,s)
v = np.zeros(self.vshape,dtype=np.float32)
vid = self.data_mod.link('-vol',self.vg,v)