Changeset 330
- Timestamp:
- 11/13/08 11:27:36 (2 months ago)
- Files:
-
- trunk/INSTALL (modified) (2 diffs)
- trunk/setup.py (modified) (2 diffs)
- trunk/src/stgen.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/INSTALL
r297 r330 2 2 ======================= 3 3 4 First download the package files: 4 First download the package files:: 5 5 6 svn co https://neuralensemble.org/svn/NeuroTools/trunk NeuroTools7 cd NeuroTools6 $ svn co https://neuralensemble.org/svn/NeuroTools/trunk NeuroTools 7 $ cd NeuroTools 8 8 9 Install as root (if you want a global install) 9 Install as root (if you want a global install):: 10 10 11 $python setup.py install11 # python setup.py install 12 12 13 or for those without root access, install to a writable location, something like: 13 or for those without root access, install to a writable location, something like:: 14 14 15 #python setup.py install --prefix=$HOME/opt/mystuff15 $ python setup.py install --prefix=$HOME/opt/mystuff 16 16 17 Then you need to add the location: 17 Then you need to add the location:: 18 18 19 $HOME/opt/mystuff/lib/python2.5/site-packages/19 $HOME/opt/mystuff/lib/python2.5/site-packages/ 20 20 21 21 to your PYTHONPATH or within python in your sys.path directive. … … 24 24 (obviously) replaced by your python version. 25 25 26 Developers of NeuroTools may be interested in having their lastly updated version from SVN used by python (and therefore on python's path). A solution is to symbolically link the src folder to a folder included in the path: 26 Developers of NeuroTools may be interested in using the last-updated version from svn. 27 A solution is to symbolically link the src folder to a folder included in the path:: 27 28 28 29 cd my_local_site-packages_folder trunk/setup.py
r303 r330 5 5 setup( 6 6 name = "NeuroTools", 7 version = "0.1.0 svn",7 version = "0.1.0", 8 8 package_dir={'NeuroTools': 'src'}, 9 9 packages = ['NeuroTools', 10 'NeuroTools.facets',11 10 'NeuroTools.utilities', 12 11 'NeuroTools.spike2', … … 14 13 ], 15 14 author = "The NeuralEnsemble Community", 16 author_email = " pynn@neuralensemble.org",17 description = "A meta-simulator framework based on PyNN",18 license = " CeCILL",19 keywords = ('computational neuroscience', ' PyNN', 'simulation', 'neuron', 'nest', 'nest2', 'pcsim', 'neuroml'),20 url = "http://neuralensemble.org/ trac/NeuroTools",15 author_email = "neurotools@neuralensemble.org", 16 description = "A collection of tools to support all tasks associated with a neural simulation project which are not handled by the simulation engine", 17 license = "GPLv2", 18 keywords = ('computational neuroscience', 'simulation', 'analysis', 'visualization', 'parameters'), 19 url = "http://neuralensemble.org/NeuroTools", 21 20 ) trunk/src/stgen.py
r323 r330 160 160 def poisson_generator(self, rate, t_start=0.0, t_stop=1000.0, array=False,debug=False): 161 161 """ 162 Returns a Spike Listwhose spikes are a realization of a Poisson process162 Returns a SpikeTrain whose spikes are a realization of a Poisson process 163 163 with the given rate (Hz) and stopping time t_stop (milliseconds). 164 164 … … 168 168 Inputs: 169 169 rate - the rate of the discharge (in Hz) 170 t_start - the beginning of the final SpikeTrain object(in ms)171 t_stop - the end of the final SpikeTrain object(in ms)170 t_start - the beginning of the SpikeTrain (in ms) 171 t_stop - the end of the SpikeTrain (in ms) 172 172 array - if True, a numpy array of sorted spikes is returned, 173 rather than a Spike Listobject.173 rather than a SpikeTrain object. 174 174 175 175 Examples:

