summaryrefslogtreecommitdiffstats
path: root/python/astra/astra.py
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-04-15 17:00:31 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2016-04-15 17:00:31 +0200
commit80bfa4774a408f109dd49a985a22ff64b08ce1df (patch)
tree330cce11dfeb228b9df788720b4fdf2c79eb003c /python/astra/astra.py
parent7633a0f48ce030413642627f16e50d27da4cf709 (diff)
parent7b8a508f0bc7a8a02766b15fa094dfd18c1b0525 (diff)
downloadastra-80bfa4774a408f109dd49a985a22ff64b08ce1df.tar.gz
astra-80bfa4774a408f109dd49a985a22ff64b08ce1df.tar.bz2
astra-80bfa4774a408f109dd49a985a22ff64b08ce1df.tar.xz
astra-80bfa4774a408f109dd49a985a22ff64b08ce1df.zip
Merge pull request #29 from wjp/indexmanager
Add an AstraIndexManager
Diffstat (limited to 'python/astra/astra.py')
-rw-r--r--python/astra/astra.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/astra/astra.py b/python/astra/astra.py
index 9328b6b..61c26ee 100644
--- a/python/astra/astra.py
+++ b/python/astra/astra.py
@@ -56,3 +56,23 @@ def set_gpu_index(idx, memory=0):
:type idx: :class:`int`
"""
a.set_gpu_index(idx, memory)
+
+def delete(ids):
+ """Delete an astra object.
+
+ :param ids: ID or list of ID's to delete.
+ :type ids: :class:`int` or :class:`list`
+
+ """
+ return a.delete(ids)
+
+def info(ids):
+ """Print info about an astra object.
+
+ :param ids: ID or list of ID's to show.
+ :type ids: :class:`int` or :class:`list`
+
+ """
+ return a.info(ids)
+
+