mirror of
https://github.com/status-im/das-research.git
synced 2025-02-23 03:48:22 +00:00
Rows and columns to sets
This commit is contained in:
parent
795bb1d10d
commit
296c4fb762
@ -61,10 +61,8 @@ class Simulator:
|
|||||||
j = i - int(heavyVal/self.shape.vpn2)
|
j = i - int(heavyVal/self.shape.vpn2)
|
||||||
start = offset+( j *self.shape.chi)
|
start = offset+( j *self.shape.chi)
|
||||||
end = offset+((j+1)*self.shape.chi)
|
end = offset+((j+1)*self.shape.chi)
|
||||||
r = list(set(rows[start:end]))
|
r = set(rows[start:end])
|
||||||
c = list(set(columns[start:end]))
|
c = set(columns[start:end])
|
||||||
r.sort()
|
|
||||||
c.sort()
|
|
||||||
val = Validator(i, int(not i!=0), self.logger, self.shape, r, c)
|
val = Validator(i, int(not i!=0), self.logger, self.shape, r, c)
|
||||||
else:
|
else:
|
||||||
val = Validator(i, int(not i!=0), self.logger, self.shape)
|
val = Validator(i, int(not i!=0), self.logger, self.shape)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user