Skip to content

Commit

Permalink
fix crash in diff function of inference engine
Browse files Browse the repository at this point in the history
  • Loading branch information
maxeeem committed Mar 17, 2024
1 parent 6b85df2 commit fbccbd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynars/NARS/InferenceEngine/KanrenEngine/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ def do_diff(t: Term):
return calculate_difference(*c.terms.terms)

# STATEMENT
elif type(c) is Statement \
and c.copula is Copula.Implication \
or c.copula is Copula.Inheritance:
elif type(c) is Statement and \
(c.copula is Copula.Implication \
or c.copula is Copula.Inheritance):
# check subject
subject = c.subject
if subject.is_compound:
Expand Down

0 comments on commit fbccbd4

Please sign in to comment.