Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 14ce0f07 authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

python

parent ba94e14e
No related branches found
No related tags found
No related merge requests found
...@@ -44,26 +44,33 @@ output_value=0 ...@@ -44,26 +44,33 @@ output_value=0
###### NECESSARY MODULE ###### ###### NECESSARY MODULE ######
try: try:
import numpy print('NUMPY PYTHON module :')
print('Python module numpy is installed') import numpy
print('module installed')
print "version : "+numpy.__version__
except ImportError: except ImportError:
print('Python module numpy is missing !') print('module is missing !')
output_value=-1 output_value=-1
try: try:
print('CYTHON PYTHON module : ')
import Cython import Cython
print('Python module Cython is installed') print('module installed')
print "version : "+Cython.__version__
except ImportError: except ImportError:
print('Python module Cython is missing !') print('module is missing !')
output_value=-1 output_value=-1
###### OPTIONAL MODULE ###### ###### OPTIONAL MODULE ######
try: try:
import scipy as sp print('SCIPY PYTHON module :')
print('Python module Scipy is installed') import scipy as sp
print('module installed')
print "version : "+sp.__version__
except ImportError: except ImportError:
print('Python module Scipy is not present, no time comparison with scipy will be made') print('module Scipy not present, no time comparison with scipy will be made')
output_value=1 output_value=1
exit(output_value) exit(output_value)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment