mirror of
https://github.com/status-im/das-research.git
synced 2025-02-23 20:08:14 +00:00
Merge branch 'develop' into fix-deterministic
This commit is contained in:
commit
b39d75125e
@ -104,11 +104,12 @@ class Simulator:
|
|||||||
def initLogger(self):
|
def initLogger(self):
|
||||||
"""It initializes the logger."""
|
"""It initializes the logger."""
|
||||||
logger = logging.getLogger("DAS")
|
logger = logging.getLogger("DAS")
|
||||||
logger.setLevel(self.logLevel)
|
if len(logger.handlers) == 0:
|
||||||
ch = logging.StreamHandler()
|
logger.setLevel(self.logLevel)
|
||||||
ch.setLevel(self.logLevel)
|
ch = logging.StreamHandler()
|
||||||
ch.setFormatter(CustomFormatter())
|
ch.setLevel(self.logLevel)
|
||||||
logger.addHandler(ch)
|
ch.setFormatter(CustomFormatter())
|
||||||
|
logger.addHandler(ch)
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@ dumpXML = 1
|
|||||||
visualization = 1
|
visualization = 1
|
||||||
logLevel = logging.INFO
|
logLevel = logging.INFO
|
||||||
|
|
||||||
|
# number of parallel workers. -1: all cores; 1: sequential
|
||||||
|
# for more details, see joblib.Parallel
|
||||||
|
numJobs = 3
|
||||||
|
|
||||||
# Number of simulation runs with the same parameters for statistical relevance
|
# Number of simulation runs with the same parameters for statistical relevance
|
||||||
runs = range(10)
|
runs = range(10)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user