summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/astra/experimental.pyx4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/astra/experimental.pyx b/python/astra/experimental.pyx
index 0c40a82..08d907d 100644
--- a/python/astra/experimental.pyx
+++ b/python/astra/experimental.pyx
@@ -65,6 +65,8 @@ IF HAVE_CUDA==True:
cdef CData3DManager * man3d = <CData3DManager * >PyData3DManager.getSingletonPtr()
def do_composite(projector_id, vol_ids, proj_ids, mode, t):
+ if mode != MODE_ADD and mode != MODE_SET:
+ raise RuntimeError("internal error: wrong composite mode")
cdef vector[CFloat32VolumeData3D *] vol
cdef CFloat32VolumeData3D * pVolObject
cdef CFloat32ProjectionData3D * pProjObject
@@ -126,6 +128,8 @@ IF HAVE_CUDA==True:
from .utils cimport linkVolFromGeometry, linkProjFromGeometry
def direct_FPBP3D(projector_id, vol, proj, mode, t):
+ if mode != MODE_ADD and mode != MODE_SET:
+ raise RuntimeError("internal error: wrong composite mode")
cdef CProjector3D * projector = manProj.get(projector_id)
if projector == NULL:
raise Exception("Projector not found")