petitRADTRANS.config.configuration#

Manages the configuration files.

Attributes#

Classes#

PetitradtransConfigParser

Used to manage petitRADTRANS's configuration.

Functions#

Module Contents#

class petitRADTRANS.config.configuration.PetitradtransConfigParser(*args, **kwargs)#

Bases: configparser.ConfigParser

Used to manage petitRADTRANS’s configuration.

_instance = None#
_directory#
_config_file#
_default_config#
classmethod _make()#

Get the petitRADTRANS configuration directory, where the configuration file is stored.

Returns:

The configuration directory.

property config_file#

Get the full path to the petitRADTRANS configuration file.

Returns:

The configuration filename.

property default_config#
property directory#
get_input_data_path()#
get_input_data_subpath(path, path_input_data=None, strict=True)#
classmethod init_default()#
load()#

Load the petitRADTRANS configuration file.

power_load()#

Load the petitRADTRANS configuration file. Generate it if necessary.

power_set(section, option, value)#
power_update(new_config, repair_update=True)#
save()#
set_input_data_path(path: str)#

Update the configuration file of petitRADTRANS.

Args:

path: path to the petitRADTRANS input data file

set_default_file(file: str, path_input_data=None)#
repair()#
petitRADTRANS.config.configuration.get_input_data_subpaths() petitRADTRANS.utils.LockedDict[str, str]#
petitRADTRANS.config.configuration.petitradtrans_config_parser#