Skip to content

Commit 2c7f1b0

Browse files
authored
Merge pull request #3 from jean-lucns/master
Update deprecated function
2 parents 7c057ed + 102c743 commit 2c7f1b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
"License :: OSI Approved :: MIT License",
1515
"Operating System :: OS Independent",
1616
]
17-
dependencies = ["numpy", "scipy", "matplotlib", "pandas", "dask", "networkx"]
17+
dependencies = ["numpy", "scipy", "matplotlib", "pandas", "dask", "networkx>=3.2.1"]
1818
dynamic = ["version"]
1919

2020
[project.urls]

src/track_linearization/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def route_distance(
206206

207207
# calculate path distance
208208
path_distance = scipy.sparse.csgraph.dijkstra(
209-
nx.to_scipy_sparse_matrix(track_graph, weight="distance")
209+
nx.to_scipy_sparse_array(track_graph, weight="distance")
210210
)
211211
n_total_nodes = len(track_graph.nodes) # After adding temporary nodes
212212
node_ind = np.arange(n_total_nodes)

0 commit comments

Comments
 (0)