braincell.quad.hidden_state

Contents

braincell.quad.hidden_state#

braincell.quad.hidden_state(value, **kwargs)#

Allocate the non-integrable hidden state class the host wants.

Used for hidden variables that are written algebraically rather than integrated — for example an ion concentration held fixed, or a species value recomputed from a conservation law.

Parameters:
  • value (ArrayLike) – Initial value, normally a brainunit.Quantity.

  • **kwargs – Forwarded to the state constructor.

Returns:

A brainstate.HiddenGroupState inside state_grouping() (i.e. within a braincell.Cell), otherwise a plain brainstate.HiddenState.

Return type:

HiddenState

See also

state_grouping

Scope that selects the class.

state

The integrable counterpart.