summaryrefslogtreecommitdiffstats
path: root/python/astra/data3d.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-04-14 14:55:23 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2015-04-14 14:55:23 +0200
commit0242b4c361a61f601e6d87ce5a2459c69f913c72 (patch)
tree5dbb3e59de9a4808ea33b9d960e44f4fbae06a2d /python/astra/data3d.py
parentd24877997bfe77e7177e3208328d99e1f99ac6b9 (diff)
parente2c87a5e259c847772c733eefb1b291b2a5b1a6e (diff)
downloadastra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.gz
astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.bz2
astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.tar.xz
astra-0242b4c361a61f601e6d87ce5a2459c69f913c72.zip
Merge pull request #52 from wjp/change_geometry3d
Add 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 4fdf9d7..e5ef6b0 100644
--- a/python/astra/data3d.py
+++ b/python/astra/data3d.py
@@ -112,6 +112,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.