BaseParameters#

class VSPEC.params.base.BaseParameters(**kwargs)#

Bases: object

Base class for Parameters

classmethod from_dict(d: dict, *args)#

Construct a BaseParameters (or subclass) instance from a dictionary.

Parameters:

d (dict) – The dictionary containing the parameters for LimbDarkeningParameters.

Returns:

An instance of BaseParameters initialized with the provided parameters.

Return type:

BaseParameters or subclass

Notes

If the dictionary contains a key named ‘preset’, the corresponding class method will be called to create an instance with preset parameters. If ‘preset’ key is not present, the dictionary is expected to contain the values needed by the constructor.

classmethod from_preset(name)#

Load a BaseParameters instance from a preset file.

Parameters:

name (str) – The name of the preset to load.

Returns:

The class instance loaded from a preset.

Return type:

BaseParameters