decode_astropy_cosmology

decode_astropy_cosmology(dct)[source]

Decode an astropy cosmology from a dictionary.

The dictionary should have been encoded using encode_astropy_cosmology() and should have the key __cosmology__.

Changed in version 2.5.0: Now uses the from_format method to decode the cosmology object. Still supports decoding result files that used the previous encoding.