Changeset 113 for trunk/examples/single_neuron/simple_single_neuron.py
- Timestamp:
- 02/12/08 19:35:50 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/single_neuron/simple_single_neuron.py
r93 r113 11 11 Refactored to use the new NeuroTools-- Nov 2007 12 12 13 $ Id $ 13 $ Id $â 14 14 15 15 """ … … 18 18 import numpy 19 19 import sys, os, tempfile 20 # choosing the simulator 20 21 import pyNN.nest1 as sim 22 # the link to read SpikeList files with NeuroTools 21 23 from NeuroTools.spikes import loadSpikeList 24 # taking the template class for models 22 25 from NeuroTools.benchmark import Model 26 # using parameters utility 27 from NeuroTools.parameters import ParameterSet 23 28 24 29 class FiberChannel(Model): … … 38 43 'kernelseed' : 4321097, # array with one element per thread 39 44 'connectseed' : 12345789, # seed for random generator(s) used during simulation 45 'url_param' : "https://neuralensemble.org/svn/NeuroTools/trunk/muller_etal2007.param" 40 46 } 41 47 42 48 #cell_params = url() 43 49 44 50 def run(self,params): 45 46 51 tmpdir = tempfile.mkdtemp() 47 52 # === Build the network ======================================================== … … 112 117 from NeuroTools.plotting import raster_plot 113 118 raster_plot(output) 119 import pylab 120 pylab.show()
