Return a Neo Block containing the data (spikes, state variables)
recorded from the Population.

variables - either a single variable name or a list of variable names

Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to all nodes and the Neo Block will contain data from all nodes.
Otherwise, the Neo Block will contain only data from the cells
simulated on the local node.

mapping functions, where a mapping function accepts a single
argument (the cell index) and returns a single value.

Here, a “single value” may be either a single number or a list/array of
numbers (e.g. for spike times). Values should be expressed in the
standard PyNN units (i.e. millivolts, nanoamps, milliseconds,
microsiemens, nanofarads, event per second).

Write recorded data to file, using one of the file formats supported by
Neo.

io:

a Neo IO instance

variables:

either a single variable name or a list of variable names.
Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to the master node and a single output file created there. Otherwise, a
file will be written on each node, containing only data from the cells
simulated on that node.

If clear is True, recorded data will be deleted from the Population.

annotations should be a dict containing simple data types such as
numbers and strings. The contents will be written into the output data
file as metadata.

In most ways, Populations and PopulationViews have the same behaviour, i.e.
they can be recorded, connected with Projections, etc. It should be noted
that any changes to neurons in a PopulationView will be reflected in the
parent Population and vice versa.

It is possible to have views of views.

Arguments:

selector:

a slice or numpy mask array. The mask array should either be a
boolean array of the same size as the parent, or an integer array
containing cell indices, i.e. if p.size == 5:

Return a Neo Block containing the data (spikes, state variables)
recorded from the Population.

variables - either a single variable name or a list of variable names

Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to all nodes and the Neo Block will contain data from all nodes.
Otherwise, the Neo Block will contain only data from the cells
simulated on the local node.

mapping functions, where a mapping function accepts a single
argument (the cell index) and returns a single value.

Here, a “single value” may be either a single number or a list/array of
numbers (e.g. for spike times). Values should be expressed in the
standard PyNN units (i.e. millivolts, nanoamps, milliseconds,
microsiemens, nanofarads, event per second).

Write recorded data to file, using one of the file formats supported by
Neo.

io:

a Neo IO instance

variables:

either a single variable name or a list of variable names.
Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to the master node and a single output file created there. Otherwise, a
file will be written on each node, containing only data from the cells
simulated on that node.

If clear is True, recorded data will be deleted from the Population.

annotations should be a dict containing simple data types such as
numbers and strings. The contents will be written into the output data
file as metadata.

Return a Neo Block containing the data (spikes, state variables)
recorded from the Assembly.

variables - either a single variable name or a list of variable names

Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to all nodes and the Neo Block will contain data from all nodes.
Otherwise, the Neo Block will contain only data from the cells
simulated on the local node.

Write recorded data to file, using one of the file formats supported by
Neo.

io:

a Neo IO instance

variables:

either a single variable name or a list of variable names.
Variables must have been previously recorded, otherwise an
Exception will be raised.

For parallel simulators, if gather is True, all data will be gathered
to the master node and a single output file created there. Otherwise, a
file will be written on each node, containing only data from the cells
simulated on that node.