summaryrefslogtreecommitdiffstats
path: root/python/astra
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-10-09 15:12:14 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-10-11 12:19:34 +0200
commitbf92d2d8dfacd7125ed48403145dbd4dc6181e4a (patch)
tree228474cc8590db33cd119514a2f0be142fef0489 /python/astra
parent1a8243ed0311c3074a79b97e1730bf3409774b8d (diff)
downloadastra-bf92d2d8dfacd7125ed48403145dbd4dc6181e4a.tar.gz
astra-bf92d2d8dfacd7125ed48403145dbd4dc6181e4a.tar.bz2
astra-bf92d2d8dfacd7125ed48403145dbd4dc6181e4a.tar.xz
astra-bf92d2d8dfacd7125ed48403145dbd4dc6181e4a.zip
Support parallel_vec in python geom_size
Diffstat (limited to 'python/astra')
-rw-r--r--python/astra/pythonutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/astra/pythonutils.py b/python/astra/pythonutils.py
index 27fa8fd..1028a0a 100644
--- a/python/astra/pythonutils.py
+++ b/python/astra/pythonutils.py
@@ -51,7 +51,7 @@ def geom_size(geom, dim=None):
elif geom['type'] == 'parallel3d' or geom['type'] == 'cone':
s = (geom['DetectorRowCount'], len(
geom['ProjectionAngles']), geom['DetectorColCount'])
- elif geom['type'] == 'fanflat_vec':
+ elif geom['type'] == 'fanflat_vec' or geom['type'] == 'parallel_vec':
s = (geom['Vectors'].shape[0], geom['DetectorCount'])
elif geom['type'] == 'parallel3d_vec' or geom['type'] == 'cone_vec':
s = (geom['DetectorRowCount'], geom[