Skip to content

Commit

Permalink
Merge pull request #121 from ML-KULeuven/bugfix_negation_name
Browse files Browse the repository at this point in the history
Add name to negation node if label_all is defined.
  • Loading branch information
rmanhaeve authored Oct 29, 2024
2 parents 5bb0485 + 896942c commit 13872a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion problog/eval_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,11 @@ def new_result(self, result, node=NODE_TRUE, source=None, is_last=False):
def complete(self, source=None):
actions = []
if self.nodes:
or_node = self.target.add_not(self.target.add_or(self.nodes, name=None))
if self.engine.label_all:
name = Term('aux_{}'.format(self.identifier))
else:
name = None
or_node = self.target.add_not(self.target.add_or(self.nodes, name=name))
if or_node != NODE_FALSE:
actions += self.notifyResult(self.context, or_node)
else:
Expand Down
2 changes: 1 addition & 1 deletion problog/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.2.4'
version = '2.2.5'

0 comments on commit 13872a3

Please sign in to comment.