Choosing a Simulator¶
Warning
Full compatibility with simulators other than NEURON is currently under development.
DendroTweaks provides a high-level, simulator-agnostic model representation and performs all model construction steps (e.g., building morphologies from SWC files), whereas the actual numerical simulation is delegated to an external simulator. To achieve this, DendroTweaks automatically instantiates corresponding sections and segments within the selected simulator.
The following simulators are currently supported:
Planned support for the following simulators:
Tip
While support for Jaxley is an ongoing effort, you can already automatically create Jaxley-compatible ion channel classes from MOD files using DendroTweaks. For more information about the Jaxley-compatible classes, refer to the corresponding tutorial.
Creating and Referencing Sections in a Simulator¶
Once we have created an instance of a SectionTree, we can reference the sections in the simulator.
>>> for sec in sec_tree.sections:
sec.create_and_reference()
This step is normally performed automatically when using a Model instance inside
the load_morphology method. You would need to do it manually only if you are working directly with a SectionTree.
Now each DendroTweaks Section is associated with a simulator-specific section. The user can access the simulator-specific section using the _ref attribute.
>>> soma = model.get_sections(lambda sec: sec.domain_name == 'soma')[0]
>>> soma._ref
<nrn.Section at 0x7f8b3b3b3b50>