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