Skip to content

Commit 3651f66

Browse files
committed
fix ida_star: return list of nodes instad of x-y-tuples
1 parent 40c76d0 commit 3651f66

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.15
2+
## Bugfix
3+
- fix for ida_star: return list of nodes instad of x-y-tuples
4+
15
# 1.0.14
26
## Bugfix
37
- fix heuristic in a weighted graph (see #65, merges #66)

pathfinding/finder/ida_star.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ def find_path(self, start, end, grid):
121121
# If t is a node, it's also the end node. Route is now
122122
# populated with a valid path to the end node.
123123
if isinstance(t, Node):
124-
return (
125-
[(node.x, node.y, node.grid_id) for node in path],
126-
self.runs
127-
)
124+
return path, self.runs
128125

129126
# Try again, this time with a deeper cut-off. The t score
130127
# is the closest we got to the end node.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
long_description=long_description,
1212
long_description_content_type="text/markdown",
1313
url="https://github.com/brean/python-pathfinding",
14-
version="1.0.14",
14+
version="1.0.15",
1515
license="MIT",
1616
author="Andreas Bresser",
1717
packages=find_packages(),

0 commit comments

Comments
 (0)