sorcha.activity.activity_registration
Attributes
Functions
|
This method will identify all of the subclasses of |
|
This function is used to register newly created subclasses of the |
Module Contents
- register_activity_subclasses() Dict[str, Callable][source]
This method will identify all of the subclasses of
AbstractCometaryActivityand build a dictionary that mapsname : subclass.- Returns:
A dictionary of all of subclasses of
AbstractCometaryActivity. Where the string returned fromsubclass.name_id()is the key, and the subclass is the value.- Return type:
dict
- Raises:
ValueError -- If a duplicate key is found, a
ValueErroris raised. This would likely occur if a user copy/pasted an existing subclass but failed to update the string returned fromname_id().