Skip to content

write_yaml does not serialise completely  #1159

@tilmantroester

Description

@tilmantroester

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions