Skip to content

Commit

Permalink
correct path for wristevator csv
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Jan 30, 2025
1 parent aba75b1 commit b847abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wristevator-pathfinder/pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import csv
import math

with open('wristevator-script/configuration_space.csv', 'r') as file:
with open('wristevator-pathfinder/configuration_space.csv', 'r') as file:
reader = csv.reader(file)

verticies = {}
Expand Down Expand Up @@ -42,6 +42,7 @@
v1, v2 = tuple(pair)

path = nx.shortest_path(G, source=v1, target=v2)

length = sum([
data['weight'] for v1, v2, data in G.edges(data=True)
if v1 in path and v2 in path
Expand Down

0 comments on commit b847abd

Please sign in to comment.