// GENESIS SETUP FILE

silent

//initialize parameters
include ../../commonGPRedu/GP1axonless_defaults_full.g
include ../../commonGPRedu/simdefaults.g
include ../../commonGPRedu/actpars.g
include ../../commonFunctions.g

modelName = "59comp"
//modelNamePassive = "59comp"
STNfilename 	= "../../commonGPRedu/gp1dendritenames_59comp_forSyns.asc"
num_STN			= 57
striatumfname 	= "../../commonGPRedu/gp1dendritenames_59comp_forSyns.asc"
num_striatum_compts = 57

/* COMMENT
ALL intrinsic model params have now been initialized and set. 
They can be safely overwritten any time between now and the calling of
the make_GP_library file. Once the library has been created, parameter values
are set and cannot be changed except with explicit calls to setfield.
*/

include ../../commonGPRedu/make_GP_library.g

setupClocks {1e-5} {5e-5} {1}
//load compartments with ion channels
readcell ../../commonGPRedu/GP1_59comp.p {cellpath} -hsolve
setupCurrentInjection_59comp
setupHinesSolver {cellpath}

doPreparations {cellpath}

deleteall -force
str clusteredSynch = "true"
rundur = 100
STN_rate = 10
striatum_rate = 0
include ../../commonGPRedu/simulateSynaptic_59comp_clusteredSynch.g

quit