MultiTemplate class¶
(Shortest import: from brian2.codegen.templates import MultiTemplate)
- class brian2.codegen.templates.MultiTemplate(module)[source]¶
Bases:
collections.abc.Mapping
Code generated by a
CodeObjectTemplate
with multiple blocksEach block is a string stored as an attribute with the block name. The object can also be accessed as a dictionary.