ytree.tree_farm.ancestry_filter.AncestryFilter

class ytree.tree_farm.ancestry_filter.AncestryFilter(function, args=None, kwargs=None)

An AncestryFilter takes a halo and a list of ancestors and returns a filtered list of filtered list of ancestors. For example, a filter could 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.
  • function should return a list of data containers. (The) –
__init__(function, args=None, kwargs=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(function[, args, kwargs]) Initialize self.