Added assertions to check conditions for exiting while loop

in _raisePermanenceToThreshold method

fixes #1322 
I'm not sure what you mean. This change has both its own "issue" and its
own "Pull Request"? I'm not sure if you remember our discussion about the
rationale for this? This new method actually does what the code is supposed
to do, and it cuts down on initialization time by not having to an
iteration for the entire size of the input field (it merely loops over the
pool size) ?

On Thu, Sep 25, 2014 at 12:29 PM, Subutai Ahmad <notifications@github.com>
wrote:

> In nupic/research/spatial_pooler.py:
>
> > @@ -1107,6 +1121,49 @@ def _initPermanence(self, potential, connectedPct):
> >      return perm
> >
> >
> > +  def _initPermanence(self, potential, connectedPct):
>
> Can we do this change in another issue. I'm not sure of the rationale for
> this. In addition any changes like this need a corresponding change to the
> C implementation so that the two implementations remain identical.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/numenta/nupic/pull/1358/files#r18046427>.
>



-- 
*We find it hard to hear what another is saying because of how loudly "who
one is", speaks...*