load_from_toml#
- skysim.settings.load_from_toml(filename, return_settings=False)[source]#
Load configuration options from a TOML file and parse them into
Settingsobjects.- Parameters:
- filename
str Location of the configuration file.
- return_settingsbool, optional
Whether to return the
Settingsobject (True) orImageSettingsandPlotSettingsobjects (False). DefaultFalse.
- filename
- Returns:
tuple[ImageSettings,PlotSettings]Settingsobjects generated from the configuration.