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

add(name, subtree, automatic_name=False)[source]

Add a new child to the morphology.

name(child)[source]

Return the given name (i.e. not the automatic name such as 1) for a child subtree.

remove(name)[source]

Remove a subtree from this morphology.