diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2018-12-12 11:26:32 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2018-12-12 11:26:32 +0100 |
commit | c712d102e7a5a67468bc46db14f0510b8f6f4381 (patch) | |
tree | 36c46b004653f0d6d8616e80bf53edeb823dbb0c /python/astra/data3d_c.pyx | |
parent | 76d0a111df258e4e0084dce2b7b60062415bd3fc (diff) | |
download | astra-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/data3d_c.pyx')
-rw-r--r-- | python/astra/data3d_c.pyx | 1 |
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() |