neat.MorphTree.distribute_locs_at_d2s¶
- MorphTree.distribute_locs_at_d2s(d2s, node_arg=None, name='dont save')[source]¶
Distributes locs on a given set of nodes at specified distances to the soma (‘d2s’). If the specified distances are on the specified nodes, the list of locations will be empty. The locations are stored if the name is set to be something other than ‘dont save’. On each node, locations are ordered from low to high x-values.
- Parameters:
d2s (numpy.array of floats) – the distances from the soma at which to put the locations (micron)
node_arg – see documentation of MorphTree.convert_node_arg_to_nodes
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