From e8765bcdab3be977cd5536531cacb24bf3378a59 Mon Sep 17 00:00:00 2001 From: Wim van Aarle Date: Thu, 12 Mar 2015 17:32:28 +0100 Subject: added parallel_vec to the python bindings --- python/astra/data2d_c.pyx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/astra/data2d_c.pyx') diff --git a/python/astra/data2d_c.pyx b/python/astra/data2d_c.pyx index ec1b478..dbe1c2f 100644 --- a/python/astra/data2d_c.pyx +++ b/python/astra/data2d_c.pyx @@ -90,6 +90,8 @@ def create(datatype, geometry, data=None): ppGeometry = new CFanFlatProjectionGeometry2D() elif (tpe == 'fanflat_vec'): ppGeometry = new CFanFlatVecProjectionGeometry2D() + elif (tpe == 'parallel_vec'): + ppGeometry = new CParallelVecProjectionGeometry2D() else: ppGeometry = new CParallelProjectionGeometry2D() if not ppGeometry.initialize(cfg): @@ -181,6 +183,8 @@ def change_geometry(i, geom): ppGeometry = new CFanFlatProjectionGeometry2D() elif (tpe == 'fanflat_vec'): ppGeometry = new CFanFlatVecProjectionGeometry2D() + elif (tpe == 'parallel_vec'): + ppGeometry = new CParallelVecProjectionGeometry2D() else: ppGeometry = new CParallelProjectionGeometry2D() if not ppGeometry.initialize(cfg): -- cgit v1.2.3