From 0d06afc38d7a8443a079d25d72ec4b4b15353974 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 3 Jul 2018 14:32:23 +0200 Subject: Allow access to python plugin object via algorithm interface --- python/astra/algorithm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'python/astra/algorithm.py') 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() -- cgit v1.2.3