CalciumFixed#
- class braincell.ion.CalciumFixed(size, E=Quantity(120., 'mV'), Ci=None, Co=None, valence=None, name=None, **channels)#
Fixed calcium dynamics.
This calcium model has no dynamics. It holds a fixed reversal potential \(E\) and fixed concentrations \(C_i\)/\(C_o\).
- Parameters:
size (
int|Sequence[int] |integer|Sequence[integer]) – The size of the simulation target, typically the number of neurons or compartments. Forwarded unchanged toCalcium.E (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Fixed reversal potential. Defaults to+120 mV. PassingNoneexplicitly raisesValueError; there is no class-default fallback for this argument.Ci (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Intracellular calcium concentration. Defaults toNone, which falls back toCalcium.default_CiinsideFixedIon._init_fixed_ion().Co (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Extracellular calcium concentration. Defaults toNone, which falls back toCalcium.default_CoinsideFixedIon._init_fixed_ion().valence (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Ionic valence. Defaults toNone, which falls back toCalcium.default_valenceinsideFixedIon._init_fixed_ion().name (
str|None) – Runtime ion instance name. Defaults toNone.**channels – Channel instances to attach to this ion, forwarded unchanged to
Calcium.
- Raises:
ValueError – If
Eis explicitly passed asNone.FixedIon._init_fixed_ion()requires an explicit fixed reversal potential and does not fall back to a class default forE.
See also
CalciumBase calcium ion family this class fixes.
CalciumInitNernstSibling calcium model whose
Eis computed from the Nernst equation instead of fixed.
Notes
With the shipped class defaults (
Co = 2.0 mM,Ci = 5e-5 mM,valence = 2) at 36 degrees Celsius, the Nernst equation givesE = +141.15 mV.CalciumFixedinstead defaultsEto+120 mV, so the two sibling classes disagree by about 21 mV when both are constructed with no arguments.