diff --git a/farg/apps/pyseqsee/stream.py b/farg/apps/pyseqsee/stream.py index 008ee4d..0e2ff93 100644 --- a/farg/apps/pyseqsee/stream.py +++ b/farg/apps/pyseqsee/stream.py @@ -29,6 +29,8 @@ def FocusOn(self, focusable, controller): self.fringe_element_to_item_to_wt[fe][focusable] = wt timestamp = controller.steps_taken self.last_focus_time[focusable] = timestamp + controller.ltm.GetNode(content=focusable).IncreaseActivation( + 5, current_time=controller.steps_taken) actions = focusable.GetActions(controller) prior_overlapping_foci = self.PriorFociWithSimilarFringe( current_focus=focusable, timestamp=timestamp) diff --git a/farg/apps/pyseqsee/tests/test_stream.py b/farg/apps/pyseqsee/tests/test_stream.py index dcd6944..979c790 100644 --- a/farg/apps/pyseqsee/tests/test_stream.py +++ b/farg/apps/pyseqsee/tests/test_stream.py @@ -4,7 +4,7 @@ from farg.apps.pyseqsee.categorization.logic import PSCategory from farg.apps.pyseqsee.controller import PSController from farg.apps.pyseqsee.focusable import PSFocusable -from farg.apps.pyseqsee.objects import PSElement +from farg.apps.pyseqsee.objects import PSElement, PlatonicObject from farg.apps.pyseqsee.stream import PSStream from farg.apps.pyseqsee.tests.utils import FringeTest from farg.apps.pyseqsee.ui import PySeqseeBatchUI @@ -25,6 +25,9 @@ def CalculateFringe(self): """This fringe will be appended with a fringe coming from category membership.""" return {self.x: 1.0, (self.x + 1): 0.5, (self.x - 1): 0.5} + def GetLTMStorableContent(self): + return PlatonicObject(rep=str(self.x)) + class FakeAttributeRichCategory(PSCategory): _Attributes = ('att_1', 'att_2', 'att_3') _Rules = ('att_1: PSElement(magnitude=1)', @@ -74,6 +77,9 @@ def __init__(self, x): def BriefLabel(self): return 'F1' + def GetLTMStorableContent(self): + return PlatonicObject(rep=str(self.x)) + def CalculateFringe(self): """This fringe will be appended with a fringe coming from category membership.""" return {self.x: 1.0, (self.x + 1): 0.5, (self.x - 1): 0.5}