Changeset 1021 for trunk

Show
Ignore:
Timestamp:
12/01/11 09:14:10 (6 months ago)
Author:
pierre
Message:

Fix the bug for setting the weights of a population

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/nest/__init__.py

    r1001 r1021  
    506506        if name == 'weight': 
    507507            value *= 1000.0 
    508             if self.synapse_type == 'inhibitory' and common.is_conductance(self[0].target): 
     508            if self.synapse_type == 'inhibitory' and common.is_conductance(self.post[0]): 
    509509                value *= -1 # NEST wants negative values for inhibitory weights, even if these are conductances 
    510510        elif name == 'delay':