Changeset 406

Show
Ignore:
Timestamp:
06/28/08 10:07:29 (5 months ago)
Author:
pierre
Message:

Finished the cleanup of post/pre connectors and correct a bug therefore in describe() in nest2

Files:

Legend:

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

    r405 r406  
    13751375        print "\t%d\t%d\t%d" %(self._sources[0], self._targets[0], self._target_ports[0]) 
    13761376        dict = nest.GetConnections([self.pre.cell.flat[0]], self._plasticity_model)[0] 
    1377         idx = numpy.where(numpy.array(dict['targets']) == self._targets[0])[0] 
    1378         for key, value in dict.items(): 
    1379           print "\t| ", key, ": ", value[idx[0]] 
     1377        for i in xrange(len(self._targets)): 
     1378            idx  = numpy.where(numpy.array(dict['targets']) == self._targets[i])[0] 
     1379            if len(idx) > 0:  
     1380                for key, value in dict.items(): 
     1381                    print "\t| ", key, ": ", value[idx[0]] 
     1382                break 
    13801383 
    13811384        print "---- End of Projection description -----" 
  • trunk/src/nest2/connectors.py

    r405 r406  
    181181            weights = _convertWeight(weights, projection.synapse_type).tolist() 
    182182            delays = self.getDelays(N).tolist() 
    183             print target_list,[pre] 
    184183            nest.DivergentConnectWD([pre], target_list.tolist(), weights, delays) 
    185184            projection._sources += [pre]*N 
     
    238237            if isinstance(conn_dict, dict): 
    239238                projection._targets += conn_dict['targets'][start_port:end_port] 
    240         print start_ports 
    241         print end_ports 
    242239        return len(projection._sources) 
    243240