has_non_float function

(Shortest import: from brian2.codegen.translation import has_non_float)

brian2.codegen.translation.has_non_float(expr, variables)[source]

Whether the given expression has an integer or boolean variable in it.


expr : str

The expression to check

variables : dict-like

Variable and Function object for all the identifiers used in expr


has_non_float : bool

Whether expr has an integer or boolean in it