NonSpecific#
- class braincell.ion.NonSpecific(size, name=None, **channels)#
Base class for NEURON-style nonspecific current ownership.
NonSpecificis a placeholder ion family used when an NMODL mechanism declares a written nonspecific current withUSEION. It exists so BrainCell can bind and probe that current separately from ordinary ionic currents while preserving the usual ion/current container interfaces.- Parameters:
size (
int|Sequence[int] |integer|Sequence[integer]) – The size of the simulation target, typically the number of neurons or compartments. Forwarded unchanged toIon.name (
str|None) – Runtime instance name. Defaults toNone, in which case the instance is unnamed. Forwarded unchanged toIon.**channels – Channel instances to attach to this placeholder ion, forwarded unchanged to
Ion.
See also
NonSpecificFixedFixed-parameter placeholder ion built on this base.
braincell.channel.Kv1p5_MA2020_GrCShipped channel that declares a nonspecific current owner via
current_owner_types.
Notes
This class does not represent a real chemical species and does not define concentration dynamics. It is intended for mechanisms such as NEURON
USEION no WRITE inodeclarations, wherenois a current owner name rather than a physiologically conserved ion pool.default_Ci,default_Co, anddefault_valenceare arbitrary placeholder values, chosen only so that the ordinaryIoninterfaces (concentration lookups, Nernst-derived reversal potentials, etc.) resolve without error. They are not measured or physiological values, and no Nernst potential computed from them is biologically meaningful.