Children class
(Shortest import: from brian2.spatialneuron.morphology import Children)
- class brian2.spatialneuron.morphology.Children(owner)[source]
Bases:
object
Helper class to represent the children (sub trees) of a section. Can be used like a dictionary (mapping names to
Morphology
objects), but iterates over the values (sub trees) instead of over the keys (names).Methods
add
(name, subtree[, automatic_name])Add a new child to the morphology.
name
(child)Return the given name (i.e. not the automatic name such as
1
) for a child subtree.remove
(name)Remove a subtree from this morphology.
Details