From bf92d2d8dfacd7125ed48403145dbd4dc6181e4a Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 9 Oct 2017 15:12:14 +0200 Subject: Support parallel_vec in python geom_size --- python/astra/pythonutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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[ -- cgit v1.2.3