From ce49a103daaa3f2e018f793a183078035eb50e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 7 Feb 2024 20:05:32 +0100 Subject: [PATCH] import shortest_path correctly --- 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 05b6a8b4..2ad56e3f 100644 --- a/src/c3nav/routing/router.py +++ b/src/c3nav/routing/router.py @@ -401,7 +401,7 @@ class Router: @cached_property def shortest_path_func(self): # this is effectively a lazy import to save memory… todo: do we need that? - from scipy.sparse.csgraph._shortest_path import shortest_path + from scipy.sparse.csgraph import shortest_path return shortest_path def shortest_path(self, restrictions, options):