Skip to content

Commit

Permalink
Bug fix for single preconditions in lifted action writing.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz committed Jun 23, 2023
1 parent af7669f commit d415372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macq/extract/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def to_pddl_lifted(
vars = [lang.variable(f"x{i}", s) for i, s in enumerate(a.param_sorts)]

if len(a.precond) == 1:
precond = lang.get(list(a.precond)[0].name)(*[vars[i] for i in a.precond[0].param_act_inds]) # type: ignore
precond = lang.get(list(a.precond)[0].name)(*[vars[i] for i in list(a.precond)[0].param_act_inds]) # type: ignore
else:
precond = CompoundFormula(
Connective.And,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = "0.3.4"
VERSION = "0.3.5"

NAME = "macq"

Expand Down

0 comments on commit d415372

Please sign in to comment.