Skip to content

Commit

Permalink
Merge pull request #1 from AIxer/v0_0_2_pre_alpha
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
bowen-xu authored Oct 31, 2022
2 parents e347862 + d00d689 commit 065b27d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pynars/NAL/Inference/LocalRules.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def revision(task: Task, belief: Task, budget_tasklink: Budget=None, budget_term
|-
S. %F_rev%
'''
premise1: Judgement = task.sentence
premise2: Judgement = belief.sentence
premise1: Union[Judgement, Goal] = task.sentence
premise2: Union[Judgement, Goal] = belief.sentence
truth1 = premise1.truth
truth2 = premise2.truth
if Enable.temporal_rasoning:
Expand All @@ -32,6 +32,7 @@ def revision(task: Task, belief: Task, budget_tasklink: Budget=None, budget_term
truth = Truth_revision(truth1, truth2)
budget, *_ = Budget_revision(task.budget, truth1, truth2, truth, budget_tasklink=budget_tasklink, budget_termlink=budget_termlink)
term = premise1.term

# stamp: Stamp = deepcopy(task.sentence.stamp) # Stamp(Global.time, task.sentence.stamp.t_occurrence, None, (j1.stamp.evidential_base | j2.stamp.evidential_base))
# stamp.evidential_base.extend(premise2.evidential_base)
stamp: Stamp = Stamp_merge(premise1.stamp, premise2.stamp)
Expand Down

0 comments on commit 065b27d

Please sign in to comment.