neurots.generate.algorithms.basicgrower

Basic class for TreeGrower Algorithms.

Classes

AxonAlgo(*args, **kwargs)

TreeGrower of axon growth.

TrunkAlgo(input_data, params, start_point[, ...])

TreeGrower basic growth of trunks class.

class neurots.generate.algorithms.basicgrower.AxonAlgo(*args, **kwargs)

Bases: TrunkAlgo

TreeGrower of axon growth.

Only a trunk with one segment is synthesized and another process is supposed to gaft an actual axon on this trunk.

class neurots.generate.algorithms.basicgrower.TrunkAlgo(input_data, params, start_point, context=None, **_)

Bases: AbstractAlgo

TreeGrower basic growth of trunks class.

Parameters:
  • input_data (dict) – All the data required for the growth.

  • params (dict) – The parameters required for growth.

  • start_point (list[float]) – The first point of the trunk.

  • context (Any) – An object containing contextual information.

bifurcate(current_section)

When the section bifurcates two new sections are created.

This method computes from the current state the data required for the generation of two new sections and returns the corresponding dictionaries.

Parameters:

current_section (neurots.generate.section.SectionGrowerPath) – The current section.

Returns:

Two dictionaries containing the two children sections data.

Return type:

tuple[dict, dict]

extend(current_section)

Extend the current section.

Create a section with the selected parameters until at least one stop criterion is fulfilled.

initialize()

Generates the data to be used for the initialization of the first section to be grown.

Saves the extracted input data into the corresponding structures.

terminate(current_section)

Terminate the current section.

When the growth of a section is terminated the “term” must be removed from the TMD grower.