Basis.get_parents

Basis.get_parents(*, include_root=True, include_self=False)[source]

Get list of parent bases ordered from direct parent to root basis.

Parameters
  • include_root (bool) – Include the root-basis in the list of parents. Default: True.

  • include_self (bool) – Include the current basis itself in the list of parents: Default: False.

Returns

List of parent bases.

Return type

list[Basis]