find_subclass
full name: tenpy.tools.misc.find_subclass
parent module:
tenpy.tools.misc
type: function
- tenpy.tools.misc.find_subclass(base_class, subclass_name)[source]
For a given base class, recursively find the subclass with the given name.
- Parameters:
- Returns:
subclass – Class with name subclass_name which is a subclass of the base_class. None, if no subclass of the given name is found.
- Return type:
class
- Raises:
ValueError – When no or multiple subclasses of base_class exists with that subclass_name.: