Changeset 1018

Show
Ignore:
Timestamp:
11/28/11 15:04:17 (6 months ago)
Author:
pierre
Message:

Fix bugs in the NeMo? backend, results for VA benchmark are close to similar now when a timestep of 1ms is used. The question is how to change it in NeMo?

Location:
trunk/src/nemo
Files:
3 modified

Legend:

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

    r1017 r1018  
    247247        if self._connections is None: 
    248248            self._connections = [] 
    249             for source in numpy.unique(self.sources): 
    250                 self._connections += list(simulator.state.net.get_synapses_from(source)) 
     249            for source in numpy.unique(self._sources): 
     250                self._connections += list(simulator.state.sim.get_synapses_from(int(source))) 
    251251        return self._connections 
    252252 
  • trunk/src/nemo/recording.py

    r1017 r1018  
    2424        self.data  = {}     
    2525        self.times = [] 
     26 
     27    def write(self, file=None, gather=False, compatible_output=True, filter=None): 
     28        recording.Recorder.write(self, file, gather, compatible_output, filter) 
     29        self._simulator.recorder_list.remove(self) 
    2630 
    2731    def record(self, ids): 
  • trunk/src/nemo/simulator.py

    r1017 r1018  
    117117                self.simulation.apply_stdp(1.0) 
    118118 
    119             for recorder in recorder_list[1:]: 
     119            for recorder in recorder_list: 
    120120                if recorder.variable is "spikes": 
    121121                    recorder._add_spike(fired, self.t)