IonInfo#
- class braincell.IonInfo(Ci, Co, E, valence)[source]#
Everything a channel is told about the ion it depends on.
A channel never receives the
Ionitself, only this snapshot, so it cannot reach back into the pool and mutate it.braincell.Ion.pack_info()builds one per lifecycle call.- Variables:
Ci (brainstate.typing.ArrayLike) – Intracellular ion concentration, conventionally in
u.mM.Co (brainstate.typing.ArrayLike) – Extracellular ion concentration, conventionally in
u.mM.E (brainstate.typing.ArrayLike) – Reversal potential – the voltage at which the ion has no net flow across the membrane – conventionally in
u.mV.valence (brainstate.typing.ArrayLike) – Charge number used in the Nernst and GHK relations.
Notes
Every field may be a scalar or an array shaped like the population, so one snapshot covers all neurons and compartments at once.
- Ci: Array | ndarray | bool | number | bool | int | float | complex | Quantity#
Alias for field number 0
- Co: Array | ndarray | bool | number | bool | int | float | complex | Quantity#
Alias for field number 1