NonSpecificFixed#
- class braincell.ion.NonSpecificFixed(size, E=Quantity(0., 'mV'), Ci=None, Co=None, valence=None, name=None, **channels)#
Fixed nonspecific current-owner placeholder.
- Parameters:
size (
int|Sequence[int] |integer|Sequence[integer]) – Runtime variable shape for this placeholder ion.E (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Fixed reversal potential used only by channels that choose to readNo.E. Defaults to0 mV.Ci (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Placeholder intracellular concentration. Defaults toNone, which falls back toNonSpecific.default_CiinsideFixedIon._init_fixed_ion().Co (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Placeholder extracellular concentration. Defaults toNone, which falls back toNonSpecific.default_CoinsideFixedIon._init_fixed_ion().valence (
Array|ndarray|bool|number|bool|int|float|complex|Quantity|Callable|None) – Placeholder valence. Defaults toNone, which falls back toNonSpecific.default_valenceinsideFixedIon._init_fixed_ion().**channels – Optional channels added directly to the placeholder ion.
- 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
NonSpecificBase placeholder ion family this class fixes.
Notes
This class is intentionally minimal. It lets a channel expose a nonspecific current component through
Ion.current(...)without changing the global membrane-current API. It should not be used as a substitute for sodium, potassium, calcium, or other explicit ion species when those concentrations carry model semantics.