NodeRenderer class

(Shortest import: from brian2.parsing.rendering import NodeRenderer)

class brian2.parsing.rendering.NodeRenderer(auto_vectorise=None)[source]

Bases: object

Methods

render_Assign(node)

render_AugAssign(node)

render_BinOp(node)

render_BinOp_parentheses(left, right, op)

render_BoolOp(node)

render_Call(node)

render_Compare(node)

render_Constant(node)

render_Name(node)

render_UnaryOp(node)

render_element_parentheses(node)

Render an element with parentheses around it or leave them away for numbers, names and function calls.

render_expr(expr[, strip])

render_func(node)

render_node(node)

Details

render_Assign(node)[source]
render_AugAssign(node)[source]
render_BinOp(node)[source]
render_BinOp_parentheses(left, right, op)[source]
render_BoolOp(node)[source]
render_Call(node)[source]
render_Compare(node)[source]
render_Constant(node)[source]
render_Name(node)[source]
render_UnaryOp(node)[source]
render_element_parentheses(node)[source]

Render an element with parentheses around it or leave them away for numbers, names and function calls.

render_expr(expr, strip=True)[source]
render_func(node)[source]
render_node(node)[source]