You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
tilmantroester
changed the title
write_yaml does not serialise completlywrite_yaml does not serialise completely
Feb 20, 2024
Not exactly. Trying to use write_yaml with complex types for Cosmology arguments now raises an error instead of silently ignoring these arguments. But you still can't round-trip using read_yaml and write_yaml if an argument to Cosmology isn't something like a float or str.
write_yaml
currently ignores thebaryonic_effects
andmg_parametrization
arguments toCosmology
, since it only uses what's inself._params_init_kwargs
andself._config_init_kwargs
. It also loses the information ontransfer_function
andmatter_power_spectrum
if they are emulators. That is, a roundtrip ofwrite_yaml
andread_yaml
doesn't recover the sameCosmology
object.The text was updated successfully, but these errors were encountered: