ytree.tree_farm.ancestry_filter.most_massive

ytree.tree_farm.ancestry_filter.most_massive(halo, ancestors)

Return only the most massive ancestor.

Parameters:
  • halo (halo data container) – Data container of the descendent halo.
  • ancestors (list of halo data containers) – List of data containers for the ancestor halos.
Returns:

filtered_ancestors – List containing data container of most massive halo.

Return type:

list of halo data containers