// GENESIS SETUP FILE

silent

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

modelName = "93comp"
compListFilename = "../../commonGPRedu/gp1dendritenames_93comp_sortedByEdist.asc"
STNfilename 	= "../../commonGPRedu/gp1dendritenames_93comp_forSyns.asc"
num_STN			= 91
striatumfname 	= "../../commonGPRedu/gp1dendritenames_93comp_forSyns.asc"
num_striatum_compts = 91

/* 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_93comp.p {cellpath} -hsolve
setupCurrentInjection_93comp
setupHinesSolver {cellpath}

doPreparations {cellpath}

deleteall -force
clusteredSynch = "false"
rundur = 100
STN_rate = 10
striatum_rate = 0
include ../../commonGPRedu/simulateSynaptic_93comp_clusteredSynch.g


quit