Fit Functions Registry

class eddington.fitting_functions_registry.FittingFunctionsRegistry

A singleton class containing all saved FittingFunction instances.

classmethod add(func)

Add a fitting function.

Parameters:func (FittingFunction) – fitting function to add to registry
classmethod all()

Get all fitting functions and generators.

Returns:list of FittingFunction
classmethod clear() → None

Clear all fitting functions and generators.

classmethod exists(func_name: str) → bool

Checks whether a fitting function exist.

Parameters:func_name (str) – Name of the function to load.
Returns:bool
classmethod load(func_name)

Get a fitting function and generators by name.

Parameters:func_name (str) – Name of the function to load.
Returns:FittingFunction
classmethod names() → List[str]

Names of all fitting functions and generators.

classmethod remove(func_name: str) → None

Remove a fitting function.

Parameters:func_name (str) – Name of the function to remove.