sorcha.lightcurves.lightcurve_registration

Attributes

LC_METHODS

Functions

register_lc_subclasses(→ Dict[str, Callable])

This method will identify all of the subclasses of AbstractLightCurve

update_lc_subclasses(→ None)

This function is used to register newly created subclasses of the

Module Contents

register_lc_subclasses() Dict[str, Callable][source]

This method will identify all of the subclasses of AbstractLightCurve and build a dictionary that maps name : subclass.

Returns:

A dictionary of all of subclasses of AbstractLightCurve. Where the string returned from subclass.name_id() is the key, and the subclass is the value.

Return type:

dict

Raises:

ValueError -- If a duplicate key is found, a ValueError is raised. This would likely occur if a user copy/pasted an existing subclass but failed to update the string returned from name_id().

update_lc_subclasses() None[source]

This function is used to register newly created subclasses of the AbstractLightCurve.

LC_METHODS[source]