pymaid.CatmaidNeuron.prune_twigs¶
- CatmaidNeuron.prune_twigs(size: float, inplace: bool = False, recursive: Union[int, bool, float] = False) Optional[TreeNeuron] ¶
Prune terminal twigs under a given size.
- Parameters
size (int | float) – Twigs shorter than this will be pruned.
inplace (bool, optional) – If False, pruning is performed on copy of original neuron which is then returned.
recursive (int | bool | "inf", optional) – If int will undergo that many rounds of recursive pruning. Use
float("inf")
to prune until no more twigs under the given size are left.
See also
prune_twigs()
This is the base function. See for details and examples.