From a165432ed21332fe489230370967e41215121226 Mon Sep 17 00:00:00 2001 From: Anal Kumar Date: Sat, 12 Jan 2019 15:03:13 +0530 Subject: [PATCH] Corrected the K_AHP z gate and make_Ca y gate In K_AHP, added the line K_AHP.useConcentration = 1 In K_AHP z gate, corrected the value of zB[i] from 1.0 to 1.0+zA[i] In make_Ca y gate, corrected the value of yA[i] from 0.0 to 5.0 when the potential is less than EREST_ACT --- python/rdesigneur/rdesigneurProtos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/rdesigneur/rdesigneurProtos.py b/python/rdesigneur/rdesigneurProtos.py index cade79201b..991bf4e8f3 100644 --- a/python/rdesigneur/rdesigneurProtos.py +++ b/python/rdesigneur/rdesigneurProtos.py @@ -239,7 +239,7 @@ def make_Ca( name ): if ( x > EREST_ACT): yA[i] = 5.0 * math.exp( -50 * (x - EREST_ACT) ) else: - yA[i] = 0.0 + yA[i] = 5.0 #yB[i] = 6.0 - yA[i] yB[i] = 5.0 x += dx @@ -336,6 +336,7 @@ def make_K_AHP( name ): K_AHP.Xpower = 0 K_AHP.Ypower = 0 K_AHP.Zpower = 1 + K_AHP.useConcentration = 1 zgate = moose.element( K_AHP.path + '/gateZ' ) xmax = 0.02 # 20 micromolar. @@ -348,7 +349,7 @@ def make_K_AHP( name ): x = zgate.min for i in range( zgate.divs + 1 ): zA[i] = min( 250.00 * CA_SCALE * x, 10 ) - zB[i] = 1.0 + zB[i] = 1.0 + zA[i] x = x + dx zgate.tableA = zA