exa.core.util.experiment_class.get_class_by_name

exa.core.util.experiment_class.get_class_by_name#

get_class_by_name(cls, name)#

Try to find a subclass of cls with the given name.

Parameters:
  • cls (type[T]) – Class whose subclasses to search.

  • name (str) – Name of the subclass.

Returns:

Subclass, or None if not found.

Return type:

type[T] | None