def merge(self, synapse_dynamics):
// If other is structural, check structural matchesifisinstance(synapse_dynamics, AbstractSynapseDynamicsStructural):
if not CommonSP.is_same_as(self, synapse_dynamics):
raise SynapticConfigurationException(
"Synapse dynamics must match exactly when using multiple"" edges to the same population")// If other is STDP, check STDP matches
After Change
def merge(self, synapse_dynamics):
// If other is structural, check structural matchesifisinstance(synapse_dynamics, AbstractSynapseDynamicsStructural):
if not SynapseDynamicsStructuralCommon.is_same_as(
self, synapse_dynamics):
raise SynapticConfigurationException(
"Synapse dynamics must match exactly when using multiple"" edges to the same population")