treefarm.ancestry_filter.AncestryFilter
- class treefarm.ancestry_filter.AncestryFilter(function, args=None, kwargs=None)[source]
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.
containers. (The function should return a list of data)
Methods
__init__(function[, args, kwargs])