Skip to content
Snippets Groups Projects
Commit 23f870d7 authored by Veronique Legrand's avatar Veronique Legrand
Browse files

bug fixed in handling options

parent 4c48b55d
No related branches found
No related tags found
No related merge requests found
......@@ -279,16 +279,16 @@ class InputDerivedDataArgs:
# Here gather user input parameters and former global variable that define how the data will be processed from a technical point of view (ex: multicore,gpu...)
class technicalParms:
def __init__(self,core,gpu,mean):
if gpu != 0 and core != 1:
print "Choose either multicore or gpu!"
exit(1)
self.core=core
self.core = core
if core == None:
self.core = 1
if gpu ==True and self.core > 1:
print "Choose either multicore or gpu!"
exit(1)
self.limit_coverage = max(50, mean * 2) / self.core
self.gpu=gpu
if gpu == None:
self.gpu = 0
self.gpu = False
# Checks options consistency and instantiates data structure for main.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment