/*--------------------------------------------------------------
	TEMPLATE FILE FOR DEFINING CORTINAL INTERNEURONS
	------------------------------------------------

	SIMPLIFIED NEURONS:

	- one compartment model
	- passive
	- HH: Traub

	Alain Destexhe, Laval University, 1995

--------------------------------------------------------------*/


print " "
print " << defining template for one-compartment sIN cell >> "
print " "


begintemplate sIN		// create a new template object
public soma

create soma[1]

proc init() { local v_potassium, v_sodium

  v_potassium = -100		// potassium reversal potential 
  v_sodium = 50			// sodium reversal potential 

  soma {
	Ra = 100		// geometry 
	nseg = 1
	diam = 67
	L = 67			// so that area is about 14000 um2
	cm = 1

	insert pas		// leak current 
	e_pas = -70
	// g_pas = 5e-5
	g_pas = 0.00015		// Rin = 48Meg

	// conversion with McC units: 
	// g(S/cm2) = g(nS)*1e-9/29000e-8
	//	    = g(nS) * 3.45e-6

	insert hh2		// Hodgin-Huxley INa and IK 
	ek = v_potassium
	ena = v_sodium
	vtraub_hh2 = -55	// resting Vm, BJ was -55
	gnabar_hh2 = 0.05	// McCormick=15 muS, thal was 0.09
//	gkbar_hh2 = 0.007	// McCormick=2 muS, thal was 0.01
//	gkbar_hh2 = 0.004
	gkbar_hh2 = 0.01	// spike duration of interneurons

  }

  print " "
  print "<< sIN: passive, INa, IK inserted >>"
  print " "

}
endtemplate sIN