summaryrefslogtreecommitdiffstats
path: root/python/astra/astra_c.pyx
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-12-01 06:05:44 -0800
committerGitHub <noreply@github.com>2016-12-01 06:05:44 -0800
commit298fda68e277c46d06fcf81866318dd0a1010746 (patch)
tree7accd8332c6df5597f5776007a3f2db6e14d64af /python/astra/astra_c.pyx
parentfbe1a7638adb10e45eeff4b04caadab8ab324a2d (diff)
parent7017618690b66e99773355b82afe26ac869d6aa8 (diff)
downloadastra-298fda68e277c46d06fcf81866318dd0a1010746.tar.gz
astra-298fda68e277c46d06fcf81866318dd0a1010746.tar.bz2
astra-298fda68e277c46d06fcf81866318dd0a1010746.tar.xz
astra-298fda68e277c46d06fcf81866318dd0a1010746.zip
Merge pull request #82 from wjp/python_version
Add astra.__version__ (PEP396)
Diffstat (limited to 'python/astra/astra_c.pyx')
-rw-r--r--python/astra/astra_c.pyx9
1 files changed, 0 insertions, 9 deletions
diff --git a/python/astra/astra_c.pyx b/python/astra/astra_c.pyx
index caa8d02..6de10da 100644
--- a/python/astra/astra_c.pyx
+++ b/python/astra/astra_c.pyx
@@ -37,8 +37,6 @@ cimport PyIndexManager
from .PyIndexManager cimport CAstraObjectManagerBase
cdef extern from "astra/Globals.h" namespace "astra":
- int getVersion()
- string getVersionString()
bool cudaEnabled()
IF HAVE_CUDA==True:
@@ -74,13 +72,6 @@ def credits():
def use_cuda():
return cudaEnabled()
-
-def version(printToScreen=False):
- if printToScreen:
- six.print_(wrap_from_bytes(getVersionString()))
- else:
- return getVersion()
-
IF HAVE_CUDA==True:
def set_gpu_index(idx, memory=0):
import collections