This package contains the API defining the basic building block of mozaik models - sheets - and related concepts.
Module containing the implementation of sheets - one of the basic building blocks of mozaik models.
Bases: mozaik.core.BaseComponent
Sheet is an abstraction of a 2D continuouse sheet of neurons, roughly corresponding to the PyNN Population class with the added spatial structure.
The spatial position of all cells is kept within the PyNN Population object. Each sheet is assumed to be centered around (0,0) origin, corresponding to whatever excentricity the model is looking at. The internal representation of space is degrees of visual field. Thus x,y coordinates of a cell in all sheets correspond to the degrees of visual field this cell is away from the origin. However, the sheet and derived classes/methods are supposed to accept parameters in units that are most natural for the given parameter and recalculate these into the internal degrees of visual field representation.
Other Parameters: | |
---|---|
cell : ParameterSet
cell.model : str
cell.params : ParameterSet
cell.initial_values : ParameterSet
mpi_safe : bool
artificial_stimulators : ParameterSet
name : str
recorders : ParameterSet
|
Notes
Each recording configuration requires the following parameters:
Set up the recording configuration.
Returns the x, y size in degrees of visual field of the given area.
The PyNN population holding the neurons in this sheet.
Adds annotation to neuron at index neuron_number.
Parameters : | neuron_number : int
key : str
value : object
protected : bool (default=True)
|
---|
Retrieve annotation for a given neuron.
Parameters : | neuron_number : int
key : str
|
---|---|
Returns : | value : object
|
Retrieve data recorded in this sheet from pyNN in response to the last presented stimulus.
Parameters : | stimulus_duration : float(ms)
|
---|---|
Returns : | segment : Segment
|
Prepares the background noise and artificial stimulation for the population for the stimulus that is about to be presented.
Parameters : | duration : float (ms)
additional_stimulators : list
offset : float (ms)
|
---|
Called once population is created. Sets up the background noise.
Called once population is set. Set’s up the initial values of the neural model variables.
This module contains implementation of vision related sheets.
Bases: mozaik.sheets.Sheet
Retinal sheet corresponds to a grid of retinal cells (retinal ganglion cells or photoreceptors). It implicitly assumes the coordinate systems is in degress in visual field.
Other Parameters: | |
---|---|
sx : float (degrees)
sy : float (degrees)
density : int
|
Bases: mozaik.sheets.Sheet
A Sheet that has a magnification factor corresponding to cortical visual area. It interprets the coordinates system to be in degrees of visual field, but it allows for definition of the layer using parameters in cortical space. It offers number of functions that facilitate conversion between the underlying visual degree coordinates and cortical space coordinate systems using the magnification factor.
Other Parameters: | |
---|---|
magnification_factor : float (μm/degree)
sx : float (μm)
sy : float (μm)
|
vf_2_cs converts the position (degree_x, degree_y) in visual field to position in cortical space (in μm) given the magnification_factor.
Parameters : | degree_x : float (degrees)
degree_y : float (degrees)
|
---|---|
Returns : | microm_meters_x,microm_meters_y : float,float (μm,μm)
|
cs_2_vf converts the position (micro_meters_x, micro_meters_y) in cortical space to the position in the visual field (in degrees) given the magnification_factor
Parameters : | micro_meters_x : float (μm)
micro_meters_y : float (μm)
|
---|---|
Returns : | degrees_x,degrees_y : float,float (degrees,degrees)
|
dvf_2_dcs converts the distance in visual space to the distance in cortical space given the magnification_factor
Parameters : | distance_vf : float (degrees)
|
---|---|
Returns : | distance_cs : float (μm)
|
Returns the size of the sheet in cortical space (μm).
Bases: mozaik.sheets.vision.SheetWithMagnificationFactor
Represents a visual cortical sheet of neurons, randomly uniformly distributed in cortical space.
Other Parameters: | |
---|---|
density : float (neurons/mm^2)
|
This module contains definition of the PopulationSelector API. It is used as mechanism for selecting subpopulations of neurons within Sheets. The most typical use is for selecting neurons for recordings, where a PopulationSelector can for example simulate the sampling of neurons when using a multi-electrode array of some specific spatial configuration.
Bases: mozaik.core.ParametrizedObject
The PopulationSelector specifies which cells should be selected from population.
It defines only one function: generate_idd_list_of_neurons that should return the list of selected neurons ids, based on the provided sheet and parameters.
Parameters : | parameters : ParameterSet
sheet : Sheet
|
---|
The abastract function that has to be implemented by each .PopulationSelector and has to return the list of selected neurons.
Returns : | ids : list
|
---|
Bases: mozaik.sheets.population_selector.PopulationSelector
This PopulationSelector selects all neurons in the sheet.
Bases: mozaik.sheets.population_selector.PopulationSelector
This PopulationSelector selects random specified number of neurons.
Other Parameters: | |
---|---|
num_of_cells : int
|
Bases: mozaik.sheets.population_selector.PopulationSelector
This PopulationSelector select random percentage of the population.
Other Parameters: | |
---|---|
percentage : float
|
Bases: mozaik.sheets.population_selector.PopulationSelector
This PopulationSelector assumes a grid of points (‘electrodes’) and includes the closest neuron to each point to the selected list.
Other Parameters: | |
---|---|
size : float (micro meters of cortical space)
spacing : float (micro meters of cortical space)
offset_x : float (micro meters of cortical space)
offset_y : float (micro meters of cortical space)
|