summaryrefslogtreecommitdiffstats
path: root/python/astra/data3d.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 14:29:27 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 14:31:50 +0200
commite2c87a5e259c847772c733eefb1b291b2a5b1a6e (patch)
tree3c53bffdea10a5dfbf0d4042095b2d9a5a3d0baa /python/astra/data3d.py
parent57625dc219e5987b09bb6d88fe4040144bb6def3 (diff)
downloadastra-e2c87a5e259c847772c733eefb1b291b2a5b1a6e.tar.gz
astra-e2c87a5e259c847772c733eefb1b291b2a5b1a6e.tar.bz2
astra-e2c87a5e259c847772c733eefb1b291b2a5b1a6e.tar.xz
astra-e2c87a5e259c847772c733eefb1b291b2a5b1a6e.zip
Add python data3d.change_geometry
Diffstat (limited to 'python/astra/data3d.py')
-rw-r--r--python/astra/data3d.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/astra/data3d.py b/python/astra/data3d.py
index a2e9201..4679489 100644
--- a/python/astra/data3d.py
+++ b/python/astra/data3d.py
@@ -90,6 +90,17 @@ def get_geometry(i):
"""
return d.get_geometry(i)
+def change_geometry(i, geometry):
+ """Change the geometry of a 3D object.
+
+ :param i: ID of object.
+ :type i: :class:`int`
+ :param geometry: Volume or projection geometry.
+ :type geometry: :class:`dict`
+
+ """
+ return d.change_geometry(i, geometry)
+
def dimensions(i):
"""Get dimensions of a 3D object.