examples/example_24_large_scale_brian2_simulation/clusternet.py
def _add_monitors(self, traj,  network, network_dict):
        """Adds monitors to the network"""

        neurons_e = network_dict['neurons_e']

        monitor_list = []

        # Spiketimes
        self.spike_monitor = SpikeMonitor(neurons_e)
        monitor_list.append(self.spike_monitor)

        # Membrane Potential
        self.V_monitor = StateMonitor(neurons_e,'V',
                                              record=list(traj.neuron_records))

        monitor_list.append(self.V_monitor)

        # Exc. syn .Current
        self.I_syn_e_monitor = StateMonitor(neurons_e, 'I_syn_e',
                                            record=list(traj.neuron_records))
        monitor_list.append(self.I_syn_e_monitor)

        # Inh. syn. Current
        self.I_syn_i_monitor = StateMonitor(neurons_e, 'I_syn_i',
                                            record=list(traj.neuron_records))
        monitor_list.append(self.I_syn_i_monitor)

        # Add monitors to network and dictionary
        network.add(*monitor_list)
        network_dict['monitors'] = monitor_list
def _add_monitors(self, traj,  network, network_dict):
        """Adds monitors to the network"""

        neurons_e = network_dict['neurons_e']

        monitor_list = []

        # Spiketimes
        self.spike_monitor = SpikeMonitor(neurons_e)
        monitor_list.append(self.spike_monitor)

        # Membrane Potential
        self.V_monitor = StateMonitor(neurons_e,'V',
                                              record=list(traj.neuron_records))

        monitor_list.append(self.V_monitor)

        # Exc. syn .Current
        self.I_syn_e_monitor = StateMonitor(neurons_e, 'I_syn_e',
                                            record=list(traj.neuron_records))
        monitor_list.append(self.I_syn_e_monitor)

        # Inh. syn. Current
        self.I_syn_i_monitor = StateMonitor(neurons_e, 'I_syn_i',
                                            record=list(traj.neuron_records))
        monitor_list.append(self.I_syn_i_monitor)

        # Add monitors to network and dictionary
        network.add(*monitor_list)
        network_dict['monitors'] = monitor_list
def _add_monitors ( self , traj , network , network_dict ) : neurons_e = network_dict [ 'neurons_e' ] monitor_list = [ ] # Spiketimes self . spike_monitor = SpikeMonitor ( neurons_e ) monitor_list . append ( self . spike_monitor ) # Membrane Potential self . V_monitor = StateMonitor ( neurons_e , 'V' , record = list ( traj . neuron_records ) ) monitor_list . append ( self . V_monitor ) # Exc. syn .Current self . I_syn_e_monitor = StateMonitor ( neurons_e , 'I_syn_e' , record = list ( traj . neuron_records ) ) monitor_list . append ( self . I_syn_e_monitor ) # Inh. syn. Current self . I_syn_i_monitor = StateMonitor ( neurons_e , 'I_syn_i' , record = list ( traj . neuron_records ) ) monitor_list . append ( self . I_syn_i_monitor ) # Add monitors to network and dictionary network . add ( * monitor_list ) network_dict [ 'monitors' ] = monitor_list
Adds monitors to the network
Adds monitors to the network