def NESTSimulation(self, load_mod=True):
        layer_IDs = self.newSimulation.NESTSimulation(self.mosaic, load_mod)
        self.loadLayers(layer_IDs)

        [self.potentials, self.spikes
         ] = self.newSimulation.runSimulation(self.layers_to_record,
                                              self.s_layers_to_record)

        data_analysis.updatePSTH(self.simtime, self.spikes,
                                 self.s_layers_to_record, self.selected_cell,
                                 self.PSTHs, self.bin_size, 0)
    def NESTSimulation(self, trial, stim):
        layer_IDs = self.newSimulation.NESTSimulation(
            data_analysis.loadSpikes(self.newSimulation.Params['N_LGN'],
                                     self.retina_labels, self.spike_folder,
                                     "retina", stim, trial, 0))
        self.loadLayers(layer_IDs)

        [self.potentials, self.spikes
         ] = self.newSimulation.runSimulation(self.layers_to_record,
                                              self.layers_to_record,
                                              self.record_Vm)

        data_analysis.updatePSTH(self.simtime, self.spikes,
                                 self.layers_to_record, self.selected_cell,
                                 self.PSTHs, self.bin_size, self.layer_sizes)
    def NESTSimulation(self, load_mod=True):
        layer_IDs = self.newSimulation.NESTSimulation(self.mosaic, load_mod)
        self.loadLayers(layer_IDs)

        [self.potentials, self.spikes
         ] = self.newSimulation.runSimulation(self.layers_to_record,
                                              self.s_layers_to_record)

        data_analysis.updatePSTH(self.simtime, self.spikes,
                                 self.s_layers_to_record, self.selected_cell,
                                 self.PSTHs, self.bin_size, 0)

        if self.usetop_PSTHs:
            data_analysis.updatePSTH(
                self.simtime, self.spikes, self.s_layers_to_record,
                list(
                    np.arange(self.newSimulation.Params['N'] *
                              self.newSimulation.Params['N'])), self.top_PSTHs,
                self.bin_size, 0)
Ejemplo n.º 4
0
    def NESTSimulation(self, trial):
        layer_IDs = self.newSimulation.NESTSimulation(
            data_analysis.loadSpikes(self.newSimulation.Params['N_LGN'],
                                     self.retina_labels, self.spike_folder,
                                     "retina", self.stim, trial, 0))
        self.loadLayers(layer_IDs)

        [self.potentials, self.spikes
         ] = self.newSimulation.runSimulation(self.layers_to_record,
                                              self.layers_to_record,
                                              self.record_Vm)

        data_analysis.updatePSTH(self.simtime, self.spikes,
                                 self.layers_to_record, self.selected_cell,
                                 self.PSTHs, self.bin_size, self.layer_sizes)

        if self.usetop_PSTHs:
            # Selected cells are passed as a list although the values of this list
            # are not used. layer_sizes is used instead.
            data_analysis.updatePSTH(self.simtime,
                                     self.spikes, self.layers_to_record,
                                     list(np.arange(2)), self.top_PSTHs,
                                     self.bin_size, self.layer_sizes)