Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kei18 committed Jul 9, 2024
1 parent e913cb5 commit 591f7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycam/lacam.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _solve(self) -> Configs:
parent=N,
order=self.get_order(Q_to),
g=N.g + self.get_edge_cost(N.Q, Q_to),
h=self.get_h_value(Q_init),
h=self.get_h_value(Q_to),
)
N.neighbors.add(N_new)
OPEN.appendleft(N_new)
Expand Down Expand Up @@ -203,7 +203,7 @@ def get_h_value(self, Q: Config) -> int:
if c is None:
return np.iinfo(np.int32).max
cost += c
return 0
return cost

def get_order(self, Q: Config) -> list[int]:
# e.g., by descending order of dist(Q[i], g_i)
Expand Down

0 comments on commit 591f7be

Please sign in to comment.