MultiTemplate class

(Shortest import: from brian2.codegen.templates import MultiTemplate)

class brian2.codegen.templates.MultiTemplate(module)[source]

Bases: Mapping

Code generated by a CodeObjectTemplate with multiple blocks

Each block is a string stored as an attribute with the block name. The object can also be accessed as a dictionary.