diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-09 15:12:14 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-10-11 12:19:34 +0200 |
commit | bf92d2d8dfacd7125ed48403145dbd4dc6181e4a (patch) | |
tree | 228474cc8590db33cd119514a2f0be142fef0489 /python | |
parent | 1a8243ed0311c3074a79b97e1730bf3409774b8d (diff) | |
download | astra-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')
-rw-r--r-- | python/astra/pythonutils.py | 2 |
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[ |