yt.utilities.hierarchy_inspection module

yt.utilities.hierarchy_inspection.find_lowest_subclasses(candidates)[source]

This function takes a list of classes, and returns only the ones that are are not super classes of any others in the list. i.e. the ones that are at the bottom of the specified mro of classes.

Parameters:candidates (Iterable) – An interable object that is a collection of classes to find the lowest subclass of.
Returns:result – A list of classes which are not super classes for any others in candidates.
Return type:list