fix error when using routing restriction option

This commit is contained in:
Laura Klünder 2023-12-21 01:19:37 +01:00
parent 7186d48383
commit e2de0e0e4d

View file

@ -450,7 +450,7 @@ class Router:
else:
graph *= 100000
factor = 1/100000
all_restrictions = RouterRestrictionSet(self.restrictions.items())
all_restrictions = RouterRestrictionSet(self.restrictions)
space_nodes = tuple(reduce(operator.or_, (self.spaces[space].nodes
for space in all_restrictions.spaces), set()))
graph[space_nodes, :] *= factor