- Timestamp:
- 12/01/11 09:07:44 (6 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
common/procedural_api.py (modified) (1 diff)
-
nemo/standardmodels/synapses.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/procedural_api.py
r999 r1020 63 63 # recorder_list is used by end() 64 64 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__? 66 67 if isinstance(source, Assembly): 67 68 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]) 69 71 if variable == 'v': 70 72 record.__name__ = "record_v" -
trunk/src/nemo/standardmodels/synapses.py
r957 r1020 23 23 for the purpose of STDP calculations all delays 24 24 are assumed to be axonal.""" 25 s tandardmodels.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) 27 27 28 28 … … 70 70 return numpy.exp(-numpy.arange(0., 30, precision)/self.parameters['tau_plus']) 71 71 72 def post_fire(self, precision=1 ):72 def post_fire(self, precision=1.): 73 73 return numpy.exp(-numpy.arange(0., 30, precision)/self.parameters['tau_minus']) 74 74
