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.

Parameters:

expr : str

The expression to check

variables : dict-like

Variable and Function object for all the identifiers used in expr

Returns:

has_non_float : bool

Whether expr has an integer or boolean in it