summaryrefslogtreecommitdiffstats
path: root/python/astra
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-12-12 11:26:32 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-12-12 11:26:32 +0100
commitc712d102e7a5a67468bc46db14f0510b8f6f4381 (patch)
tree36c46b004653f0d6d8616e80bf53edeb823dbb0c /python/astra
parent76d0a111df258e4e0084dce2b7b60062415bd3fc (diff)
downloadastra-c712d102e7a5a67468bc46db14f0510b8f6f4381.tar.gz
astra-c712d102e7a5a67468bc46db14f0510b8f6f4381.tar.bz2
astra-c712d102e7a5a67468bc46db14f0510b8f6f4381.tar.xz
astra-c712d102e7a5a67468bc46db14f0510b8f6f4381.zip
Remove unused array allocation in data3d.get_shared
Thanks to @ahendriksen.
Diffstat (limited to 'python/astra')
-rw-r--r--python/astra/data3d_c.pyx1
1 files changed, 0 insertions, 1 deletions
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] = <np.npy_intp> pDataObject.getDepth()
shape[1] = <np.npy_intp> pDataObject.getHeight()