Show
Ignore:
Timestamp:
08/10/10 17:18:06 (22 months ago)
Author:
thesamovar
Message:

** Brian 1.2.2dev-2010-08-10 **

Fixed problems with STDP separating equations for triplet rule
Fixed sparse matrix problem with scipy 0.8.0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/brian/utils/sparse_patch/0_7_1.py

    r2020 r2116  
    6262            sparse.lil_matrix.__setitem__(self, index, [W] * len(xrange(*j.indices(self.shape[1])))) 
    6363        elif isinstance(i, slice) and isinstance(j, slice) and isNumberType(W): 
    64             n = len(xrange(*j.indices(self.shape[0]))) 
     64            n = len(xrange(*i.indices(self.shape[0]))) 
    6565            m = len(xrange(*j.indices(self.shape[1]))) 
     66            print index 
     67            print n, m 
    6668            sparse.lil_matrix.__setitem__(self, index, W * numpy.ones((n, m))) 
    6769        else: