Changeset 1020 for trunk

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

Nemo, neuron, nest, brian are now giving similar results for VABenchmark, and for the individual cell tests. Note that Brunel network leads to different results, I think because of the very high frequencies of the input neuron, with more than one spike per dt. Will finish the STDP in Nemo/Brian? soon, to have everything coherent

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/procedural_api.py

    r999 r1020  
    6363        # recorder_list is used by end() 
    6464        if isinstance(source, BasePopulation): 
    65             simulator.recorder_list.append(source.recorders[variable])  # this is a bit hackish - better to add to Population.__del__? 
     65            if source.recorders[variable] not in simulator.recorder_list: 
     66                simulator.recorder_list.append(source.recorders[variable])  # this is a bit hackish - better to add to Population.__del__? 
    6667        if isinstance(source, Assembly): 
    6768            for population in source.populations: 
    68                 simulator.recorder_list.append(population.recorders[variable]) 
     69                if population.recorders[variable] not in simulator.recorder_list: 
     70                    simulator.recorder_list.append(population.recorders[variable]) 
    6971    if variable == 'v': 
    7072        record.__name__ = "record_v" 
  • trunk/src/nemo/standardmodels/synapses.py

    r957 r1020  
    2323                                                 for the purpose of STDP calculations all delays 
    2424                                                 are assumed to be axonal.""" 
    25         standardmodels.STDPMechanism.__init__(self, timing_dependence, weight_dependence, 
    26                                       voltage_dependence, dendritic_delay_fraction) 
     25        super(STDPMechanism, self).__init__(timing_dependence, weight_dependence, 
     26                                            voltage_dependence, dendritic_delay_fraction) 
    2727 
    2828 
     
    7070        return numpy.exp(-numpy.arange(0., 30, precision)/self.parameters['tau_plus']) 
    7171 
    72     def post_fire(self, precision=1): 
     72    def post_fire(self, precision=1.): 
    7373        return numpy.exp(-numpy.arange(0., 30, precision)/self.parameters['tau_minus']) 
    7474