From c712d102e7a5a67468bc46db14f0510b8f6f4381 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 12 Dec 2018 11:26:32 +0100 Subject: Remove unused array allocation in data3d.get_shared Thanks to @ahendriksen. --- python/astra/data3d_c.pyx | 1 - 1 file changed, 1 deletion(-) (limited to 'python') diff --git a/python/astra/data3d_c.pyx b/python/astra/data3d_c.pyx index d4073ea..4c8aa62 100644 --- a/python/astra/data3d_c.pyx +++ b/python/astra/data3d_c.pyx @@ -277,7 +277,6 @@ def get(i): def get_shared(i): cdef CFloat32Data3DMemory * pDataObject = dynamic_cast_mem_safe(getObject(i)) - outArr = np.empty((pDataObject.getDepth(),pDataObject.getHeight(), pDataObject.getWidth()),dtype=np.float32,order='C') cdef np.npy_intp shape[3] shape[0] = pDataObject.getDepth() shape[1] = pDataObject.getHeight() -- cgit v1.2.3