GUIBRUSHR.core.config.chemistry module

Chemistry configuration module for GUIBRUSHR.

Provides a focused ChemistryConfig class that loads all chemistry-related constants and species definitions from the YAML configuration files. This covers physical constants, chemical species groups, molecular dictionaries, hybrid element definitions, and condensed species — everything that was previously scattered through the ConstantVariables class under the “Chemical Species Configuration”, “Molecular and Element Configuration”, and condensed-species sections.

class GUIBRUSHR.core.config.chemistry.ChemistryConfig(configuration_yaml_path: str)[source]

Bases: object

Chemistry constants and species configuration for GUIBRUSHR.

Loads general.yaml, molecules.yaml, hybrid_elements.yaml, and condensed.yaml from configuration_yaml_path and exposes the chemistry-related constants and species dictionaries used throughout the application.

Parameters:

configuration_yaml_path (str) – Absolute path to the directory that contains the YAML configuration files (the same value as configuration_yaml_path).

Variables:
  • NOT_VMR_METALS (list) – Species excluded from the VMR metals group.

  • HCNO_NEUTRALS (str) – Space-separated list of HCNO neutral species.

  • IONS (str) – Space-separated list of ion species.

  • ALKALI (str) – Space-separated list of alkali species.

  • METALS (str) – Space-separated list of metal species.

  • METAL_OXIDES (str) – Space-separated list of metal-oxide species.

  • LIST_ELEMENT_FOR_HYBRID (List[str]) – Sorted list of elements used in hybrid abundance calculations.

  • CLIGHT (float) – Speed of light in km/s.

  • SOLAR_TO_JUPITER_MASSES (float) – Conversion factor from solar masses to Jupiter masses.

  • AU (float) – Astronomical unit in metres.

  • R_JUP_MEAN (float) – Mean Jupiter radius in CGS units.

  • R_JUP (float) – Jupiter equatorial radius in CGS units.

  • M_JUP (float) – Jupiter mass in CGS units.

  • R_SUN (float) – Solar radius in CGS units.

  • M_SUN (float) – Solar mass in CGS units.

  • G (float) – Gravitational constant in CGS units.

  • RATIO_RSUN_RJUP (float) – Ratio R_SUN / R_JUP.

  • RATIO_RSUN_RJUP_MEAN (float) – Ratio R_SUN / R_JUP_MEAN.

  • ALL_MOLECS_DICT (Dict[str, Dict]) – Full molecules dictionary loaded from molecules.yaml.

  • ALL_MOLEC (List[str]) – Ordered list of molecule keys.

  • DICT_LABELS_MOLEC (Dict[str, str]) – Mapping of molecule key to display label.

  • ELEMENTS_DICT (Dict[str, Dict]) – Full hybrid-elements dictionary loaded from hybrid_elements.yaml.

  • ALL_ELEMENT (List[str]) – Ordered list of element keys.

  • DICT_LABELS_ELEMENTS (Dict[str, str]) – Mapping of element key to display label.

  • ALL_CONDENSED_MOLECS_DICT (Dict[str, Dict]) – Full condensed-species dictionary loaded from condensed.yaml.

  • ALL_CONDENSED_MOLEC (Dict[str, str]) – Mapping of condensed species long name to its YAML key.

  • DICT_LABELS_CONDENSED_MOLEC (Dict[str, str]) – Mapping of condensed species key to display label.

__init__(configuration_yaml_path: str) None[source]