petitRADTRANS.config.configuration

Manages the configuration files.

Module Contents

Classes

PetitradtransConfigParser

ConfigParser implementing interpolation.

Functions

get_input_data_subpaths(...)

Attributes

petitradtrans_config_parser

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

Bases: configparser.ConfigParser

ConfigParser implementing interpolation.

property config_file

Get the full path to the petitRADTRANS configuration file.

Returns:

The configuration filename.

property default_config
property directory
_instance
_directory
_config_file
_default_config
classmethod _make()

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

Returns:

The configuration 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