Gate#
- class braincell.channel.Gate(name, power=1, phi=None, q10=None, temp_ref=None, time_unit=Unit('ms'), clip=False)[source]#
Metadata for one HH gate.
- Parameters:
name (
str) – Gate name. The state is stored under this attribute and the rate methods are looked up asf_<name>_inf/f_<name>_tauorf_<name>_alpha/f_<name>_beta.power (
int) – Exponent applied to the gate inHH.conductance_factor().phi (
Any|None) – Explicit temperature factor. Mutually exclusive withq10. Astrnames an instance attribute; see_resolve_value().q10 (
Any|None) – Q10 coefficient, used together withtemp_refandself.temp. Resolved the same way asphi.temp_ref (
Any|None) – Reference temperature forq10, as an absolute temperature. Resolved the same way asphi.time_unit (
Any) – Unit assumed when a rate method returns a bare (dimensionless) value.f_<name>_taureturning5.0is read as5 * time_unitandf_<name>_alphareturning0.3as0.3 / time_unit. Rate methods that return a properly united quantity are used as-is and ignore this field.clip (
bool) – Project the gate into[0, 1]when evaluatingHH.conductance_factor(). Off by default: NEURON does not clip HH gates either, so clipping would diverge from the reference mechanisms this catalogue is validated against. Enable it per gate when a solver is expected to overshoot and an oddpowerwould otherwise yield a negative conductance. The stored state is never rewritten – only the value used for the conductance product.
- Raises:
ValueError – If
phiis provided together withq10ortemp_ref, ifq10andtemp_refare not both provided together, or iftime_unitdoes not have a time dimension.