<KSChannel id="Kadist-Mig" permeantIon="K" gSingle="20pS">

	<KSComplex instances="1">
      <ClosedState id="c"/>
      <OpenState id="o"/>
	<TauInfCodedTransition from="c" to="o" tauvar="ntau" infvar="ninf">
 		<Constant name="q10" value="5"/>
 		<Constant name="zetan" value="-1.8"/>
 		<Constant name="pw" value="-1" info=""/>
 		<Constant name="tq" value="-40" info=""/>
 		<Constant name="qq" value="5" info=""/>
 		<Constant name="vhalfn" value="-1" info="mV"/>
 		<Constant name="gmn" value="0.39"/>
 		<Constant name="nmin" value="0.2" info="minimum time constant"/>
 		<Constant name="a0n" value="0.1"/>
 		<![CDATA[
 		  double qt=Math.pow(q10, ((temperature-24)/10));
 		  double zeta=zetan+pw/(1+Math.exp((v-tq)/qq));
          double a = Math.exp(1.e-3*zeta*(v-vhalfn)*9.648e4/(8.315*(273.16+temperature)));
          ninf = 1/(1 + a);
          double betn = Math.exp(1.e-3*zeta*gmn*(v-vhalfn)*9.648e4/(8.315*(273.16+temperature)));
          ntau = betn /(qt*a0n*(1+a));
          if (ntau < nmin) ntau = nmin;

 		]]>
 	</TauInfCodedTransition>
 </KSComplex>


<KSComplex instances="1">
      <OpenState id="o"/>
      <ClosedState id="c"/>
	<TauInfCodedTransition from="c" to="o" tauvar="ltau" infvar="linf">
 		<Constant name="q10" value="5"/>
 		<Constant name="zetal" value="3"/>
 		<Constant name="vhalfl" value="-56" info="mV"/>
 		<Constant name="qtl" value="1" info=""/>
 		<Constant name="lmin" value="2" info="minimum time constant"/>
 		<![CDATA[
 		  double qt=Math.pow(q10, ((temperature-24)/10));
          double a = Math.exp(1.e-3*zetal*(v-vhalfl)*9.648e4/(8.315*(273.16+temperature)));
          linf = 1 / (1 + a);
          ltau = 0.26 * (v + 50) / qtl;
          if (ltau < lmin / qtl) ltau = lmin / qtl;
 		]]>
 	</TauInfCodedTransition>


 </KSComplex>



 </KSChannel>