Hi @itq . In your model, the synaptic weight w
has units of volts, but your connectivity matrix contains dimensionless values. When you set
syn.w[:] = connectivity_matrix[(sources, targets)]
Brian therefore complains. You need to decide what the strength of each individual synapse should be, e.g. if it is one mV, then you could write:
syn.w[:] = connectivity_matrix[(sources, targets)] * mV
A more general solution would be something like:
weight_per_synapse = 0.5*mV
syn.w[:] = connectivity_matrix[(sources, targets)] * weight_per_synapse
Hope that helps!