All synapse types — expOne, expTwo, alpha, blocking, NMDA
NML2_SynapseTypes.nml
Catalog of all NeuroML2 built-in synapse types:
Synapse
Kinetics
Key Parameters
expOneSynapse
Single-exponential decay
gbase, erev, tauDecay
expTwoSynapse
Rise + decay
gbase, erev, tauRise, tauDecay
expThreeSynapse
Rise + two decay phases
gbase, erev, tauRise, tauDecay1, tauDecay2
alphaSynapse
Alpha function
gbase, erev, tau
blockingPlasticSynapse
With voltage block + plasticity
+ blockConcentration, blockMechanism
doubleSynapse
Two conductance components
gbase1, gbase2, …
from pathlib import Pathnml_file = Path.home() /"work_data/toolboxes/NeuroML2/examples/NML2_SynapseTypes.nml"text = nml_file.read_text()for line in text.split('\n'): stripped = line.strip()if'Synapse'in stripped and stripped.startswith('<') and'id='in stripped:print(stripped[:120])