16 lines
244 B
Plaintext
16 lines
244 B
Plaintext
func TMS_sim_simple(){ localobj nil, detector
|
|
axon detector = new NetCon(&v(0.5), nil)
|
|
detector.threshold = 0
|
|
detector.record("handle()")
|
|
|
|
init()
|
|
tstop = 2
|
|
run()
|
|
return fired
|
|
}
|
|
|
|
proc handle(){
|
|
fired = 1
|
|
stoprun = 1
|
|
}
|