yt.utilities.hierarchy_inspection module

yt.utilities.hierarchy_inspection.find_lowest_subclasses(candidates: list[type[T]]) list[type[T]][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 iterable 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

yt.utilities.hierarchy_inspection.get_classes_with_missing_requirements() dict[type[Dataset], list[str]][source]