synapses.py 469 B

12345678910111213141516171819202122
  1. from brian2 import units
  2. exp2SynEqs = "\n".join((
  3. "g = B - A: siemens",
  4. "ISyn_post = -g * (V_post - Esyn): amp (summed)",
  5. "dB/dt = -B/tau2: siemens (clock-driven)",
  6. "dA/dt = -A/tau1: siemens (clock-driven)",
  7. "tau1: second",
  8. "tau2: second",
  9. "wSyn: siemens",
  10. "Esyn: volt",
  11. ))
  12. exp2Syn = {
  13. "model": exp2SynEqs,
  14. "on_pre": "A += wSyn\nB += wSyn",
  15. }
  16. exp2SynStateInits = {
  17. "A": 0 * units.siemens,
  18. "B": 0 * units.siemens
  19. }