begintemplate PYCell public soma, syn, axon public x, y, z public addConnection create soma, axon objref syn proc init() { x = $1 y = $2 z = $3 soma { diam = 20 L = 20 insert hh syn = new ExpSyn(.5) syn.tau = 5 // set lattice position of cell pt3dclear() pt3dadd(x-L/2, y, z, diam) pt3dadd(x+L/2, y, z, diam) } axon { diam = 1 L=1 } } proc addConnection() { axon { pt3dadd(x, y, z, 1) pt3dadd($1, $2, $3, 1) } } endtemplate PYCell