Skip to content

Wrap astropy z_at_value for v5.

Colm Talbot requested to merge astropy-bug-fix into master

Closes bilby_pipe#231 (closed).

The most recent release of astropy (v5, py38+) introduced a slew of changes to the cosmology module including a dimensionless unit for redshift.

This has broken our conversion.

The MR wraps the z_at_value function to always return a float (the astropy<5 behaviour). It's a little ugly but does what we need.

Merge request reports

Loading