Merge pull request #5 from status-im/requirements

Requirements
This commit is contained in:
Leo 2022-12-14 17:20:58 +01:00 committed by GitHub
commit 3d7891c77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

1
DAS/requeriments.txt Normal file
View File

@ -0,0 +1 @@
bitarray==2.6.0

View File

@ -7,8 +7,8 @@ from DAS import *
def study(): def study():
sim = Simulator(0) sim = Simulator(0)
sim.initLogger() sim.initLogger()
maxTries = 2 maxTries = 10
step = 25 step = 20
frRange = [] frRange = []
resultRange = [] resultRange = []
simCnt = 0 simCnt = 0
@ -24,7 +24,7 @@ def study():
result += sim.run() result += sim.run()
simCnt += 1 simCnt += 1
frRange.append(fr) frRange.append(fr)
resultRange.append(100-result) resultRange.append((maxTries-result)*100/maxTries)
end = time.time() end = time.time()
sim.logger.info("A total of %d simulations ran in %d seconds" % (simCnt, end-start), extra=sim.format) sim.logger.info("A total of %d simulations ran in %d seconds" % (simCnt, end-start), extra=sim.format)
for i in range(len(frRange)): for i in range(len(frRange)):