neat.PhysTree.create_finite_difference_tree¶
- PhysTree.create_finite_difference_tree(*args, **kwargs)¶
Create a ::class::neat.CompartmentTree whose parameters implement the second order finite difference approximation for the morphology.
- Parameters:
dx_max (float) – Maximum distance step between compartments (in [um]). By default, each node of this tree will correspond to at least one compartment, and thus one node in the comparment tree. If the length of a node exceeds dx_max, there will be the smallest possible number of equally spaced comparments so that the distance between them does not exceed dx_max. Note that if the computational tree is active, the computational nodes will be taken as a reference for placing the compartment locations.
name (string) – If given, stores the compartment locations in this tree. Default is to not store the locations.
- Returns:
comptree (::class::neat.CompartmentTree) – The compartment tree
locs (list of ::class::neat.MorphLoc) – The location corresponding to the compartments of the finite difference approximation