示例#1
0
    def __init__(self,sim,parameters):
        MozaikComponent.__init__(self, self, parameters);        
        self.first_time=True
        self.sim = sim
        self.node = self.sim.setup() # should have some parameters here
        self.sheets = {}
        self.connectors = {}

        # Set-up visual stimulus
        self.visual_space = VisualSpace(self.parameters.screen.update_interval,self.parameters.screen.background_luminance)
        self.simulator_time = 0
示例#2
0
    def __init__(self, model, parameters):
        """
        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.

        The units in visual space should be in degrees.
        The units for cortical space should be in μm.
        The units for time are in ms.
        """
        MozaikComponent.__init__(self, model, parameters)
        self.sim = self.model.sim
        self.name = parameters.name # the name of the population
        self.model.register_sheet(self)
        self.to_record = None
        self._pop = None