the index % self.rate == 0 check is moved into the update call for each recorder as opposed to being inside the __iter__ only. This change makes sure that the behavior for update and next(iter()) is consistent
For attrs that has spike in its name, they are treated as spike variables. When rate > 1, spike variables are accumulated for each step to return to total spike count instead of binary value of whether a spike is present or not. This addresses #8 part 2.
Changed the recorder in the following ways:
index % self.rate == 0
check is moved into theupdate
call for each recorder as opposed to being inside the__iter__
only. This change makes sure that the behavior forupdate
andnext(iter())
is consistentattrs
that hasspike
in its name, they are treated as spike variables. Whenrate > 1
, spike variables are accumulated for each step to return to total spike count instead of binary value of whether a spike is present or not. This addresses #8 part 2.