Skip to content

Commit

Permalink
Merge pull request #3 from tubo213/fix-typo
Browse files Browse the repository at this point in the history
Fix typo: change configuration_generaotr to configuration_generator
  • Loading branch information
Kei18 authored Jun 4, 2024
2 parents 2f918f5 + 5e301e3 commit 942cdd1
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 @@ -142,7 +142,7 @@ def _solve(self) -> Configs:
N.tree.append(C.get_child(i, u))

# generate the next configuration
Q_to = self.configuration_generaotr(N, C)
Q_to = self.configuration_generator(N, C)
if Q_to is None:
# invalid configuration
continue
Expand Down Expand Up @@ -225,7 +225,7 @@ def get_order(self, Q: Config) -> list[int]:
order.sort(key=lambda i: self.dist_tables[i].get(Q[i]), reverse=True)
return order

def configuration_generaotr(
def configuration_generator(
self, N: HighLevelNode, C: LowLevelNode
) -> Config | None:
Q_to = Config([NO_LOCATION for _ in range(self.num_agents)])
Expand Down

0 comments on commit 942cdd1

Please sign in to comment.