GUIBRUSHR.core.config.paths module

Path configuration module for GUIBRUSHR.

Provides a focused PathConfig class that resolves all filesystem paths needed by the application: the project root, the petitRADTRANS data directory, the list of user-defined paths (from configuration.csv), and the directory that contains the YAML configuration files.

class GUIBRUSHR.core.config.paths.PathConfig(config_csv: str | None = None)[source]

Bases: object

Filesystem path configuration for GUIBRUSHR.

Resolves and exposes all path-related configuration used throughout the application. By default the project root is determined relative to this source file (four directory levels up), matching the layout used by ConstantVariables.

Parameters:

config_csv (str, optional) – Override the path to configuration.csv. Useful for testing or when running the application from a non-standard location.

Variables:
  • path_default (Path) – Absolute path to the project root directory.

  • path_petitradtrans (Path) – Absolute path to the petitRADTRANS opacity data directory.

  • paths (List[str]) – All path strings read from the Path column of configuration.csv.

  • configuration_yaml_path (str) – Absolute path (as a string) to the directory containing the YAML configuration files.

__init__(config_csv: str | None = None) None[source]