is_constant_over_dt function¶
(Shortest import: from brian2.equations.codestrings import is_constant_over_dt)
-
brian2.equations.codestrings.
is_constant_over_dt
(expression, variables, dt_value)[source]¶ Check whether an expression can be considered as constant over a time step. This is not the case when the expression either:
- contains the variable
t
(except as the argument of a function that can be considered as constant over a time step, e.g. aTimedArray
with a dt equal to or greater than the dt used to evaluate this expression) - refers to a stateful function such as
rand()
.
- contains the variable