def _slowIsSegmentActive(self, seg, timeStep):
numSyn = seg.size()<EOL>numActiveSyns = <NUM_LIT:0><EOL>for synIdx in range(numSyn):<EOL><INDENT>if seg.getPermanence(synIdx) < self.connectedPerm:<EOL><INDENT>continue<EOL><DEDENT>sc, si = self.getColCellIdx(seg.getSrcCellIdx(synIdx))<EOL>if self.infActiveState[timeStep][sc, si]:<EOL><INDENT>numActiveSyns += <NUM_LIT:1><EOL>if numActiveSyns >= self.activationThreshold:<EOL><INDENT>return True<EOL><DEDENT><DEDENT><DEDENT>return numActiveSyns >= self.activationThreshold<EOL>
A segment is active if it has >= activationThreshold connected
synapses that are active due to infActiveState.