From 296c4fb762be2b8409c3521ae561533454ab1a97 Mon Sep 17 00:00:00 2001 From: Leonardo Bautista-Gomez Date: Thu, 30 Mar 2023 13:36:48 +0200 Subject: [PATCH] Rows and columns to sets --- DAS/simulator.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DAS/simulator.py b/DAS/simulator.py index 5aac495..99cb5a5 100644 --- a/DAS/simulator.py +++ b/DAS/simulator.py @@ -61,10 +61,8 @@ class Simulator: j = i - int(heavyVal/self.shape.vpn2) start = offset+( j *self.shape.chi) end = offset+((j+1)*self.shape.chi) - r = list(set(rows[start:end])) - c = list(set(columns[start:end])) - r.sort() - c.sort() + r = set(rows[start:end]) + c = set(columns[start:end]) val = Validator(i, int(not i!=0), self.logger, self.shape, r, c) else: val = Validator(i, int(not i!=0), self.logger, self.shape)