uvex_transients.utils.io_utils#

YAML (de)serialization helpers for the package configuration.

The only non-trivial extension needed here is a !astropy_cosmology tag so config.yaml can name one of Astropy’s built-in cosmologies (e.g. Planck18) and have it load as a live ~astropy.cosmology.FLRW instance rather than a bare string – see uvex_transients.utils.cosmology.get_cosmology().

Attributes

config_yaml

The YAML (de)serializer used to load/save the package configuration.

Functions

get_config_yaml()

Return a YAML serializer configured for Astropy cosmologies.