Skip to content

Commit

Permalink
caching action.name instead of action inside ground_action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alelafar committed Dec 20, 2024
1 parent e48855d commit b5819ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unified_planning/engines/compilers/grounder.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def ground_action(
assert len(action.parameters) == len(
parameters
), "The number of given parameters for the grounding is different from the action's parameters"
key = (action, tuple(parameters))
key = (action.name, tuple(parameters))
value = self._grounded_actions.get(key, 0)
if value != 0: # The action is already created
assert isinstance(value, Action) or value is None
Expand Down

0 comments on commit b5819ca

Please sign in to comment.