summaryrefslogtreecommitdiffstats
path: root/python/astra
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-04-25 11:03:18 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-04-25 11:03:18 +0200
commita33b2a0e4e0663145fb0d4d67a9145948f90341a (patch)
tree7bda0a448530d0c013f4ea1e2c8a06c485dee170 /python/astra
parent8b67986464daae799d0171aed70a0d2cd96fd8d1 (diff)
downloadastra-a33b2a0e4e0663145fb0d4d67a9145948f90341a.tar.gz
astra-a33b2a0e4e0663145fb0d4d67a9145948f90341a.tar.bz2
astra-a33b2a0e4e0663145fb0d4d67a9145948f90341a.tar.xz
astra-a33b2a0e4e0663145fb0d4d67a9145948f90341a.zip
Reverse output of astra.data3d.dimensions
This makes the output directly usable in numpy commands like zeros, reshape. We were not using data3d.dimensions ourselves, as far as I can tell.
Diffstat (limited to 'python/astra')
-rw-r--r--python/astra/data3d_c.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/astra/data3d_c.pyx b/python/astra/data3d_c.pyx
index 207d9a5..811d1e4 100644
--- a/python/astra/data3d_c.pyx
+++ b/python/astra/data3d_c.pyx
@@ -264,7 +264,7 @@ def store(i,data):
def dimensions(i):
cdef CFloat32Data3D * pDataObject = getObject(i)
- return (pDataObject.getWidth(),pDataObject.getHeight(),pDataObject.getDepth())
+ return (pDataObject.getDepth(),pDataObject.getHeight(),pDataObject.getWidth())
def delete(ids):
try: