From 37810ea928bbc85e420ff2c7efcb3493315ac6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 27 Dec 2017 12:13:32 +0100 Subject: [PATCH] =?UTF-8?q?fix=20nodes=20exclusion=E2=80=A6=20even=20more?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c3nav/routing/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/router.py b/src/c3nav/routing/router.py index af7b8db2..308987ca 100644 --- a/src/c3nav/routing/router.py +++ b/src/c3nav/routing/router.py @@ -391,7 +391,7 @@ class Router: graph[waytype.nonupwards_indices.transpose().tolist()] *= 100000 # exclude spaces and edges - space_nodes = tuple(reduce(operator.or_, (self.spaces[space] for space in restrictions.spaces), set())) + space_nodes = tuple(reduce(operator.or_, (self.spaces[space].nodes for space in restrictions.spaces), set())) graph[space_nodes, :] = np.inf graph[:, space_nodes] = np.inf graph[restrictions.edges.transpose().tolist()] = np.inf