Skip to content

Commit

Permalink
MAINT: fix decode_astropy_cosmology for legacy result files
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will authored and ColmTalbot committed Jan 23, 2025
1 parent 3fc3289 commit 1a274bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bilby/core/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ def decode_astropy_cosmology(dct):
except KeyError:
# Support decoding result files that used the previous encoding
logger.warning(
"Failed to decode cosmology, falling back to legacy decoding."
"Failed to decode cosmology, falling back to legacy decoding. "
"Support for legacy decoding will be removed in a future release."
)
cosmo_cls = getattr(cosmo, dct["__name__"])
del dct["__cosmology__"], dct["__name__"]
del dct["__name__"]
return cosmo_cls(**dct)


Expand Down

0 comments on commit 1a274bb

Please sign in to comment.