pynn_brainscales.brainscales2.simulator.IDMixin

class pynn_brainscales.brainscales2.simulator.IDMixin

Bases: object

Instead of storing ids as integers, we store them as ID objects, which allows a syntax like:

p[3,4].tau_m = 20.0

where p is a Population object.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

as_view()

Return a PopulationView containing just this cell.

get_initial_value(variable)

Get the initial value of a state variable of the cell.

get_parameters()

Return a dict of all cell parameters.

inject(current_source)

Inject current from a current source object into the cell.

set_initial_value(variable, value)

Set the initial value of a state variable of the cell.

set_parameters(**parameters)

Set cell parameters, given as a sequence of parameter=value arguments.

Attributes

celltype

is_standard_cell

local

position

Return the cell position in 3D space.

as_view()

Return a PopulationView containing just this cell.

property celltype
get_initial_value(variable)

Get the initial value of a state variable of the cell.

get_parameters()

Return a dict of all cell parameters.

inject(current_source)

Inject current from a current source object into the cell.

property is_standard_cell
property local
property position

Return the cell position in 3D space.

Cell positions are stored in an array in the parent Population, if any, or within the ID object otherwise. Positions are generated the first time they are requested and then cached.

set_initial_value(variable, value)

Set the initial value of a state variable of the cell.

set_parameters(**parameters)

Set cell parameters, given as a sequence of parameter=value arguments.