Skip to content

matrix size error #16

@udi741

Description

@udi741

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] ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions