pycea.get.root

Contents

pycea.get.root#

pycea.get.root(tdata, tree=None)#

Get the root of a tree.

Parameters:
  • tdata (TreeData) – The treedata.TreeData object.

  • tree (str | Sequence[str] | None (default: None)) – The obst key or keys of the trees.

Return type:

str | Mapping[str, str | None]

Returns:

root - str if a single tree is requested, mapping from tree key to root node if multiple trees are requested.