write_yaml currently ignores the baryonic_effects and mg_parametrization arguments to Cosmology, since it only uses what's in self._params_init_kwargs and self._config_init_kwargs. It also loses the information on transfer_function and matter_power_spectrum if they are emulators. That is, a roundtrip of write_yaml and read_yaml doesn't recover the same Cosmology object.
write_yamlcurrently ignores thebaryonic_effectsandmg_parametrizationarguments toCosmology, since it only uses what's inself._params_init_kwargsandself._config_init_kwargs. It also loses the information ontransfer_functionandmatter_power_spectrumif they are emulators. That is, a roundtrip ofwrite_yamlandread_yamldoesn't recover the sameCosmologyobject.