Thank you!
Best,
Daphne
CODE
# define network connectivity
conn_dict = {'rule': 'pairwise_bernoulli', 'p': 0.1}
# define dicts for static synapses
static_ex_params = {'model':'static_synapse','weight': 6.0, 'delay': 1.5}
static_in_params = {'model':'static_synapse','weight': -96.0, 'delay': 1.5}
if self.STDP == 'ALL':
# all synapses should be stdp ones, make connections between the two populations:
# from exc neurons to all neurons
nest.Connect(neurons_all[:self.NE], neurons_all, conn_dict, self.syn_params_ex)
# from interneurons to all neurons
nest.Connect(neurons_all[self.NE:], neurons_all, conn_dict, self.syn_params_in)
elif self.STDP == 'EXC':
# keep the inhibitory synapses static
# connections from exc neurons to all neurons
nest.Connect(neurons_all[:self.NE], neurons_all, conn_dict, self.syn_params_ex)
# connections from interneurons to all neurons
nest.Connect(neurons_all[self.NE:], neurons_all, conn_dict, static_in_params)
synapse_params_in = {
'model':'stdp_synapse',
'lambda': 0.01,
'alpha': 1.0,
'delay': 1.5,
'weight':-95.0
}