WeaveCodeObject class¶
(Shortest import: from brian2 import WeaveCodeObject)
-
class
brian2.codegen.runtime.weave_rt.weave_rt.WeaveCodeObject(owner, code, variables, variable_indices, template_name, template_source, name='weave_code_object*')[source]¶ Bases:
brian2.codegen.codeobject.CodeObjectWeave code object
The
codeshould be aMultiTemplateobject with two macros defined,main(for the main loop code) andsupport_codefor any support code (e.g. function definitions).Methods
compile()is_available()run()update_namespace()variables_to_namespace()Details