mmc.Hierarchy.flatten_children()
- Hierarchy.flatten_children(parent_subset_to_dissolve)
Flattens child nodes of the hierarchy. The direct child classification information is moved to the same layer as the parent and their parent classification is dissolved. If parents and children have conflicting definitions, edge-case behavior may lead to the generation of nodes with duplicate markers (which is otherwise prevented) but should still function. This should be done before setting thresholds. Only immediate chiild layer will be dissolved and gradchildren will become children.
- Parameters:
parent_subset_to_dissolve (
str) – The subset that is parent to the classification layer being dissolved.