src/nupic/algorithms/backtracking_tm_shim.py
def read(cls, proto):
    """
    Intercepts TemporalMemory deserialization request in order to initialize
    `self.infActiveState`

    @param proto (DynamicStructBuilder) Proto object

    @return (TemporalMemory) TemporalMemory shim instance
    """
    tm = super(TMShimMixin, cls).read(proto)
    tm.infActiveState = {"t": None}
    return tm
def read(cls, proto):
    """
    Intercepts TemporalMemory deserialization request in order to initialize
    `self.infActiveState`

    @param proto (DynamicStructBuilder) Proto object

    @return (TemporalMemory) TemporalMemory shim instance
    """
    tm = super(TMShimMixin, cls).read(proto)
    tm.infActiveState = {"t": None}
    return tm
Intercepts TemporalMemory deserialization request in order to initialize
    `self.infActiveState`

    @param proto (DynamicStructBuilder) Proto object

    @return (TemporalMemory) TemporalMemory shim instance