Skip to content
Snippets Groups Projects
Commit d8bf1a4e authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Modified Versions to run at the begining

parent 3e091e6b
No related branches found
No related tags found
No related merge requests found
from Versions import testVersions
testVersions()
import sys import sys
from MonoMultiViewClassifiers import ExecClassif from MonoMultiViewClassifiers import ExecClassif
......
...@@ -22,7 +22,6 @@ from . import MonoviewClassifiers ...@@ -22,7 +22,6 @@ from . import MonoviewClassifiers
from .Multiview.ExecMultiview import ExecMultiview, ExecMultiview_multicore from .Multiview.ExecMultiview import ExecMultiview, ExecMultiview_multicore
from .Monoview.ExecClassifMonoView import ExecMonoview, ExecMonoview_multicore from .Monoview.ExecClassifMonoView import ExecMonoview, ExecMonoview_multicore
from .Multiview import GetMultiviewDb as DB from .Multiview import GetMultiviewDb as DB
from Versions import testVersions
from ResultAnalysis import resultAnalysis, analyzeLabels, analyzeIterResults from ResultAnalysis import resultAnalysis, analyzeLabels, analyzeIterResults
from .utils import execution, Dataset from .utils import execution, Dataset
...@@ -273,7 +272,6 @@ def classifyOneIter(LABELS_DICTIONARY, argumentDictionaries, nbCores, directory, ...@@ -273,7 +272,6 @@ def classifyOneIter(LABELS_DICTIONARY, argumentDictionaries, nbCores, directory,
# _______________ # # _______________ #
def execClassif(arguments): def execClassif(arguments):
# import pdb;pdb.set_trace() # import pdb;pdb.set_trace()
testVersions()
start = time.time() start = time.time()
args = execution.parseTheArgs(arguments) args = execution.parseTheArgs(arguments)
......
from . import ExecClassif, ResultAnalysis, Versions, Metrics, MonoviewClassifiers, Monoview, Multiview, utils from . import ExecClassif, ResultAnalysis, Metrics, MonoviewClassifiers, Monoview, Multiview, utils
__all__ = ['Metrics', 'Monoview', 'MonoviewClassifiers', 'Multiview', 'utils'] __all__ = ['Metrics', 'Monoview', 'MonoviewClassifiers', 'Multiview', 'utils']
...@@ -10,88 +10,94 @@ ...@@ -10,88 +10,94 @@
# Author-Info # Author-Info
__author__ = "Nikolas Huelsmann, Baptiste BAUVIN" __author__ = "Baptiste Bauvin"
__status__ = "Prototype" # Production, Development, Prototype __status__ = "Prototype" # Production, Development, Prototype
__date__ = 2016 - 03 - 25 __date__ = 2016 - 03 - 25
def testVersions(): def testVersions():
isUpToDate = True
toInstall = []
try: try:
import sys import sys
# print("Python-V.: " + sys.version) # print("Python-V.: " + sys.version)
except: except:
print "Please install Python 2.7" # print "Please install Python 2.7"
raise
try:
import pyscm
except:
print "Please install pyscm"
raise raise
# try:
# import cv2
# # print("OpenCV2-V.: " + cv2.__version__)
# except:
# print "Please install cv2 module"
try: try:
import pandas import pyscm
# print("Pandas-V.: " + pd.__version__)
except: except:
print "Please install pandas module" # print "Please install pyscm"
isUpToDate = False
toInstall.append("pyscm")
try: try:
import numpy import numpy
# print("Numpy-V.: " + numpy.version.version) # print("Numpy-V.: " + numpy.version.version)
except: except:
print "Please install numpy module" # print "Please install numpy module"
raise isUpToDate = False
toInstall.append("numpy")
try: try:
import scipy import scipy
# print("Scipy-V.: " + scipy.__version__) # print("Scipy-V.: " + scipy.__version__)
except: except:
print "Please install scipy module" # print "Please install scipy module"
raise isUpToDate = False
toInstall.append("scipy")
try: try:
import matplotlib import matplotlib
# print("Matplotlib-V.: " + matplotlib.__version__) # print("Matplotlib-V.: " + matplotlib.__version__)
except: except:
print "Please install matplotlib module" # print "Please install matplotlib module"
raise isUpToDate = False
toInstall.append("matplotlib")
try: try:
import sklearn import sklearn
# print("Sklearn-V.: " + sklearn.__version__) # print("Sklearn-V.: " + sklearn.__version__)
except: except:
print "Please install sklearn module" # print "Please install sklearn module"
raise isUpToDate = False
toInstall.append("sklearn")
try: try:
import logging # To create Log-Files import logging # To create Log-Files
# print("Logging: " + logging.__version__) # print("Logging: " + logging.__version__)
except: except:
print "Please install logging module" # print "Please install logging module"
raise isUpToDate = False
toInstall.append("logging")
try: try:
import joblib import joblib
# print("joblib: " + joblib.__version__) # print("joblib: " + joblib.__version__)
except: except:
print "Pease install joblib module" # print "Pease install joblib module"
raise isUpToDate = False
toInstall.append("joblib")
try: try:
import argparse import argparse
# print("argparse: " + argparse.__version__) # print("argparse: " + argparse.__version__)
except: except:
print "Pease install argparse module" # print "Pease install argparse module"
raise isUpToDate = False
toInstall.append("argparse")
try: try:
import h5py # import h5py #
# print("h5py: " + h5py.__version__) # print("h5py: " + h5py.__version__)
except: except:
print "Pease install h5py module" # print "Pease install h5py module"
raise isUpToDate = False
toInstall.append("h5py")
if not isUpToDate:
print "You can't run at the moment, please install the following modules : \n"+ "\n".join(toInstall)
if __name__== "__main__":
testVersions()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment