Changeset 967

Show
Ignore:
Timestamp:
05/26/11 16:16:29 (12 months ago)
Author:
apdavison
Message:

Forgot that not only 9ML-generated synaptic mechanisms have NetCon.wcnt() > 1, but also tsodyks-markram, etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/neuron/simulator.py

    r957 r967  
    452452                nc.weight[0] = weight 
    453453                 
    454                 # if we have a mechanism (e.g. from 9ML that includes multiple 
     454                # if we have a mechanism (e.g. from 9ML) that includes multiple 
    455455                # synaptic channels, need to set nc.weight[1] here 
    456                 if nc.wcnt() > 1: 
     456                if nc.wcnt() > 1 and hasattr(target._cell, "type"): 
    457457                    nc.weight[1] = target._cell.type.synapse_types.index(self.synapse_type) 
    458458                nc.delay  = delay