Changeset 707 for trunk/doc/highlevelapi.txt
- Timestamp:
- 02/12/10 11:29:45 (2 years ago)
- Files:
-
- 1 modified
-
trunk/doc/highlevelapi.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/highlevelapi.txt
r701 r707 258 258 Again, there is a performance penalty for this, so if you wish each node to write its own file, add ``gather=False`` to the argument list. 259 259 260 It is possible to save data in various different formats. The default (if you pass a filename) is a text file, but you can also save in various binary formats. To save in HDF5 format , for example::260 It is possible to save data in various different formats. The default (if you pass a filename) is a text file, but you can also save in various binary formats. To save in HDF5 format (this requires the PyTables package to be installed), for example:: 261 261 262 262 >>> h5file = recording.files.HDF5ArrayFile("spikefile.h5", "w") … … 393 393 The second example connects each neuron to all its neighbours within a range of 3 units (distance is in µm if positions have been specified, in array coordinate distance otherwise). Note that boolean values ``True`` and ``False`` are automatically converted to numerical values ``1.0`` and ``0.0``. 394 394 395 The calculation of distance may be controlled by specifying a ` Space` object.395 The calculation of distance may be controlled by specifying a ``Space`` object. 396 396 397 397 By default, the 3D distance between cell positions is used, but the ``axes`` argument may be used to change this, e.g.:: … … 516 516 >>> prj1_1.randomizeDelays(delay_distr) 517 517 518 ## NOTE: Need to add information about getting/setting individual weights and delays 518 It is also possible to access the attributes of individual connections using the 519 ``connections`` attribute of a projection:: 520 521 >>> for c in prj1_1.connections[:5]: 522 ... c.weight *= 2 523 524 In general, though, this is less efficient than using list- or array-based access. 519 525 520 526 Accessing weights and delays
