Skip to content

Commit 7998314

Browse files
Fixes for cantata (#2438)
- bind the correct class `py_ion_data` - use `LOCAL` conductances.
1 parent 36f2766 commit 7998314

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

mechanisms/allen/K_T.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ STATE {
2929

3030
BREAKPOINT {
3131
SOLVE states METHOD cnexp
32-
ik = gbar*m*m*m*m*h*(v-ek)
32+
LOCAL g
33+
g = gbar*m*m*m*m*h
34+
ik = g*(v-ek)
3335
}
3436

3537
DERIVATIVE states {

mechanisms/allen/Kd.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ STATE {
2323

2424
BREAKPOINT {
2525
SOLVE states METHOD cnexp
26-
ik = gbar*m*h*(v - ek)
26+
LOCAL g
27+
g = gbar*m*h
28+
ik = g*(v - ek)
2729
}
2830

2931
DERIVATIVE states {

mechanisms/allen/Kv3_1.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ STATE {
2323

2424
BREAKPOINT {
2525
SOLVE states METHOD cnexp
26-
ik = gbar*m*(v - ek)
26+
LOCAL g
27+
g = gbar*m
28+
ik = g*(v - ek)
2729
}
2830

2931
DERIVATIVE states {

python/cells.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void register_cells(py::module& m) {
600600
.def_readonly("diffusivity", &arb::cable_cell_ion_data::diffusivity, "Diffusivity.")
601601
.def_readonly("reversal_concentration", &arb::cable_cell_ion_data::init_reversal_potential, "Reversal potential.");
602602

603-
ion_data
603+
py_ion_data
604604
.def_property_readonly("charge", [](const ion_settings& s) { return s.charge; }, "Valence.")
605605
.def_property_readonly("internal_concentration", [](const ion_settings& s) { return s.internal_concentration; }, "Internal concentration.")
606606
.def_property_readonly("external_concentration", [](const ion_settings& s) { return s.external_concentration; }, "External concentration.")

0 commit comments

Comments
 (0)