Changeset 1023 for trunk

Show
Ignore:
Timestamp:
12/02/11 01:43:02 (6 months ago)
Author:
pierre
Message:

Wrong commit, sorry, forgot the file fixed the padding issue in Nemo.

Files:
1 modified

Legend:

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

    r1018 r1023  
    9494        poissons_sources = [] 
    9595        arrays_sources   = [] 
     96        fired            = [] 
    9697 
    9798        for source in spikes_array_list: 
     
    112113                    spikes += [source] 
    113114             
    114             fired = numpy.sort(self.sim.step(spikes, currents))  
    115  
    116             if self.stdp: 
    117                 self.simulation.apply_stdp(1.0) 
    118  
    119115            for recorder in recorder_list: 
    120116                if recorder.variable is "spikes": 
     
    122118                if recorder.variable is "v": 
    123119                    recorder._add_vm(self.t) 
     120 
     121            fired = self.sim.step(spikes, currents) 
     122 
     123            if self.stdp: 
     124                self.simulation.apply_stdp(1.0) 
     125            
    124126            if self.verbose:                 
    125127                self.prog.update_amount(t)