summaryrefslogtreecommitdiffstats
path: root/python/astra/algorithm.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-07-03 14:32:23 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-07-03 14:32:23 +0200
commit0d06afc38d7a8443a079d25d72ec4b4b15353974 (patch)
tree9a866e41d62d0432bad4dd49e4072cc2fed97d29 /python/astra/algorithm.py
parentb3822b778c2f8684217957c966dddfee178c926c (diff)
downloadastra-0d06afc38d7a8443a079d25d72ec4b4b15353974.tar.gz
astra-0d06afc38d7a8443a079d25d72ec4b4b15353974.tar.bz2
astra-0d06afc38d7a8443a079d25d72ec4b4b15353974.tar.xz
astra-0d06afc38d7a8443a079d25d72ec4b4b15353974.zip
Allow access to python plugin object via algorithm interface
Diffstat (limited to 'python/astra/algorithm.py')
-rw-r--r--python/astra/algorithm.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/astra/algorithm.py b/python/astra/algorithm.py
index 33cca85..8862af3 100644
--- a/python/astra/algorithm.py
+++ b/python/astra/algorithm.py
@@ -66,6 +66,17 @@ def delete(ids):
"""
return a.delete(ids)
+def get_plugin_object(i):
+ """Return the Python object instance of a plugin algorithm.
+
+ :param i: ID of object corresponding to a plugin algorithm.
+ :type i: :class:`int`
+ :returns: The Python object instance of the plugin algorithm.
+
+ """
+ return a.get_plugin_object(i)
+
+
def clear():
"""Clear all matrix objects."""
return a.clear()