evaluate_expr function
(Shortest import: from brian2.codegen.optimisation import evaluate_expr)
-
brian2.codegen.optimisation.evaluate_expr(expr, ns)[source]
Try to evaluate the expression in the given namespace
Returns either (value, True) if successful, or (expr, False) otherwise.