diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-02-17 16:18:23 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-02-17 16:19:54 +0100 |
commit | 0884a3928395dd368aea61eeef768677018f9095 (patch) | |
tree | bb3103d6fadaf2aaa1c2e964f15ba97787bcfae2 /python/astra/astra.py | |
parent | 7b6d74bd403f5bb0e4c8ba451eefa13193e7ed34 (diff) | |
download | astra-0884a3928395dd368aea61eeef768677018f9095.tar.gz astra-0884a3928395dd368aea61eeef768677018f9095.tar.bz2 astra-0884a3928395dd368aea61eeef768677018f9095.tar.xz astra-0884a3928395dd368aea61eeef768677018f9095.zip |
Add python astra.astra delete/info based on index manager
Diffstat (limited to 'python/astra/astra.py')
-rw-r--r-- | python/astra/astra.py | 20 |
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) + + |