load_file("nrngui.hoc")

xpanel("original or demo")
xbutton("Original GA settings","restart(\"GA\")")
xbutton("Short run test","restart(\"shortRun\")")

xpanel(5,100)

pwmcnt = PWManager[0].count // the initial gui should not be dismissed

proc restart() {local i
	for (i= PWManager[0].count-1; i >= pwmcnt; i -= 1) {
		PWManager[0].close(i)
		doNotify()
	}
	sprint(tstr, "%s.hoc", $s1)
	load_file(1, tstr)
}