-
Notifications
You must be signed in to change notification settings - Fork 74
matrix size error #16
Copy link
Copy link
Closed
Description
Hello,
I just used the pathfinding with matrix with size of (227,304).
when i tried to get the node[222][268] i got this error:
File "C:\Users\...\Python\Python37\site-packages\pathfinding\core\grid.py", line 60, in node return self.nodes[y][x] IndexError: list index out of range
I changed the self.nodes[y][x] to - self.nodes[x][y] and it works like magic.
is there any reason you decided to make it self.nodes[y][x] ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels