Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of pddl anytime planner #459

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unified_planning/engines/pddl_anytime_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _parse_planner_output(self, writer: "Writer", planner_output: str):
for l in planner_output.splitlines():
if self._starting_plan_str() in l:
writer.storing = True
elif self._ending_plan_str() in l:
elif writer.storing and self._ending_plan_str() in l:
plan_str = "\n".join(writer.current_plan)
plan = self._plan_from_str(
writer.problem, plan_str, self._writer.get_item_named
Expand Down