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.

halo: halo data container
Data container of the descendent halo.
ancestors : list of halo data containers
List of data containers for the ancestor halos.

The function should return a list of data containers.

__init__(function, args=None, kwargs=None)

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


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