Skip to content

Commit

Permalink
Don't try to include negative preconditions with slaf.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz committed Jun 29, 2023
1 parent 7d1424e commit 54178d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion macq/extract/slaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ def __sort_results(observations: ObservedTraceList, entailed: Set):
precond = info_split[0]
action = info_split[1]
# update the precondition of this action with the appropriate fluent
learned_actions[action].update_precond({precond})
# only if it's a positive precondition
if "~" not in precond:
learned_actions[action].update_precond({precond})
# if this proposition holds information about an effect
elif effect in e:
# split to separate effect and action, get rid of extra brackets
Expand Down

0 comments on commit 54178d3

Please sign in to comment.