Changeset 396

Show
Ignore:
Timestamp:
06/26/08 13:39:39 (5 months ago)
Author:
apdavison
Message:

The bugfix in r392 uncovered another problem: we should accept either periodic_boundaries = False or periodic_boundaries = None

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/common.py

    r394 r396  
    241241    for i in xrange(x.shape[0]): 
    242242        diff2 = abs(x[i,:,None] - y[i,:]) 
    243         if not periodic_boundaries == None
     243        if periodic_boundaries
    244244            dims  = diff2.shape 
    245245            diff2 = diff2.flatten() 
  • trunk/test/unittests/nest2tests.py

    r393 r396  
    455455        assert len(prj2) == self.source33.size 
    456456         
    457     def testDistantDependentProbability(self): 
     457    def testDistanceDependentProbability(self): 
    458458        """For all connections created with "distanceDependentProbability"...""" 
    459459        # Test should be improved..."