Next: Individual units, Previous: Interpreter context, Up: Top [Contents][Index]
Multiple models can be created, accessed, modified, advanced within a single interpreter context. Models are identified by a label (a string).
Create a model named M (model label).
Delete model M.
List models existing in context C, returned as strings.
Models can be populated by constituent neurons and synapses in two ways:
import_nml()
);
new_neuron()
, new_synapse()
).
Import network topology from a file (file_name) into a model named M.
Export network topology of model M into file file_name.
Create a neuron of type type, with this label, in model M. label must be of the form “population.id”.
Create a synapse of this type connecting neurons labelled source and target.
Reset the state of all units, rewind all periodic sources and flush and close any logs in model M.
Remove all synapses with a zero gsyn, in model M. This makes sense unless you are going to modify gsyn at a later time.
Describe model M. The output will be printed to stdout and look like this:
Model "FAFA": 13 units total (7 Neurons, 6 Synapses): 11 hosted, 2 standalone 0 discrete dt-bound 0 Listening units 0 Spikelogging neurons 0 Units being tuned continuously 0 Units being tuned periodically 2 Spontaneously firing neurons 2 Multiplexing synapses 26 vars on integration vector
Run simulation in model M for duration milliseconds.
Run simulation in model M until point in time time.
Note that the real eventual model time after this function has returned may be a little (less than the last dt) greater than expected.
Each model has the following parameters that affect its behaviour:
Level of verbosity of printed messages (integer, 0 up to 6).
Lower bound for dt (float).
Upper bound for dt (float).
Maximal factor by which dt can be allowed to increase in consecutive iterations (float).
A time increment between consecutive sampling and logging of state variables (float).
A string of symbols defining unit ‘listening’ mode, of the form
x{-}, where x indicates the mode and -,
whether to disable that mode (if given, else enable). There are three
modes: 1, whether to log the first state variable only, or all
unit vars; d, whether to defer writing until end of simulation;
and b, whether to write FP values in native machine representation
instead of "%g"
.
Length of time, before and after sampling point, limiting the extent of counting spikes for sdf/sxf evaluation (float). Leave at 0 to count all spikes from 0 until current model time; a couple of seconds should be good for reasonable accuracy.
Sampling period for sdf and shf (spike density and spike heterogeneity) functions.
Parameter sigma in sdf (float).
Get a model parameter P, one of those listed above.
Set a model parameter P to value V.
Next: Individual units, Previous: Interpreter context, Up: Top [Contents][Index]