From 91a4b489479825aa95885d0b5cb6b787728e59b0 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 3 Feb 2023 23:05:37 +0100 Subject: [PATCH 1/2] log number of steps as well Signed-off-by: Csaba Kiraly --- study.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/study.py b/study.py index 68663b8..25e8735 100644 --- a/study.py +++ b/study.py @@ -37,7 +37,7 @@ def study(): sim.initValidators() sim.initNetwork() result = sim.run() - sim.logger.info("Shape: %s ... Block Available: %d" % (str(sim.shape.__dict__), result.blockAvailable), extra=sim.format) + sim.logger.info("Shape: %s ... Block Available: %d in %d steps" % (str(sim.shape.__dict__), result.blockAvailable, len(result.missingVector)), extra=sim.format) results.append(copy.deepcopy(result)) simCnt += 1 From e5c657e31e6642cca88af4f393331ff9a0d12132 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 15 Feb 2023 02:55:06 +0100 Subject: [PATCH 2/2] more debug logging Signed-off-by: Csaba Kiraly --- DAS/simulator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DAS/simulator.py b/DAS/simulator.py index 3e6e496..a8cec35 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -106,14 +106,18 @@ class Simulator: while(True): missingVector.append(missingSamples) oldMissingSamples = missingSamples + self.logger.debug("PHASE SEND %d" % steps, extra=self.format) for i in range(0,self.shape.numberValidators): self.validators[i].sendRows() self.validators[i].sendColumns() + self.logger.debug("PHASE RECEIVE %d" % steps, extra=self.format) for i in range(1,self.shape.numberValidators): self.validators[i].receiveRowsColumns() + self.logger.debug("PHASE RESTORE %d" % steps, extra=self.format) for i in range(1,self.shape.numberValidators): self.validators[i].restoreRows() self.validators[i].restoreColumns() + self.logger.debug("PHASE LOG %d" % steps, extra=self.format) for i in range(0,self.shape.numberValidators): self.validators[i].logRows() self.validators[i].logColumns()