fix error when using routing restriction option
This commit is contained in:
parent
7186d48383
commit
e2de0e0e4d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue