ytree.data_structures.tree_node_selector.max_field_value¶
-
ytree.data_structures.tree_node_selector.
max_field_value
(ancestors, field)[source]¶ Return the TreeNode with the maximum value of the given field.
Parameters: - ancestors (list of TreeNode objects) – List of TreeNode objects from which to select.
- field (string) – Field to be used for selection.
Returns: Return type: TreeNode object