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_formatmethod to decode the cosmology object. Still supports decoding result files that used the previous encoding.