neat.MorphTree.distribute_locs_uniform

MorphTree.distribute_locs_uniform(*args, **kwargs)[source]

Distributes locations as uniformly, i.e. for a given distance between locations dx, locations are distributed equidistantly on each given node in the computational tree and their amount is computed so that the distance in between them is as close to dx as possible. Note that if a (computational tree) node has L < dx / 2, no locations will be distributed on that node. Locations in the list follow a depth-first ordering.

Parameters:
  • dx (float (> 0)) – target distance in micron between the locations

  • node_arg – see documentation of MorphTree.convert_node_arg_to_nodes

  • add_bifurcations (bool) – whether to ensure that all bifurcation nodes are added

  • name (string) – the name under which the locations are stored. Defaults to ‘dont save’ which means the locations are not stored

Returns:

the list of locations

Return type:

list of neat.MorphLoc