diff --git a/DAS/simulator.py b/DAS/simulator.py index 3e6e496..07cd5d4 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -75,6 +75,11 @@ class Simulator: val1.columnNeighbors[id].update({val2.ID : Neighbor(val2, self.shape.blockSize)}) val2.columnNeighbors[id].update({val1.ID : Neighbor(val1, self.shape.blockSize)}) + if self.logger.isEnabledFor(logging.DEBUG): + for i in range(0, self.shape.numberValidators): + self.logger.debug("Val %d : rowN %s", i, self.validators[i].rowNeighbors, extra=self.format) + self.logger.debug("Val %d : colN %s", i, self.validators[i].columnNeighbors, extra=self.format) + def initLogger(self): """It initializes the logger.""" logger = logging.getLogger("DAS") diff --git a/DAS/validator.py b/DAS/validator.py index 6344925..3270c38 100644 --- a/DAS/validator.py +++ b/DAS/validator.py @@ -50,7 +50,7 @@ class Validator: self.columnIDs = range(shape.blockSize) else: self.rowIDs = rows[(self.ID*self.shape.chi):(self.ID*self.shape.chi + self.shape.chi)] - self.columnIDs = rows[(self.ID*self.shape.chi):(self.ID*self.shape.chi + self.shape.chi)] + self.columnIDs = columns[(self.ID*self.shape.chi):(self.ID*self.shape.chi + self.shape.chi)] #if shape.deterministic: # random.seed(self.ID) #self.rowIDs = random.sample(range(self.shape.blockSize), self.shape.chi)