Migration notes¶
0.8.0: explicit masses in analytic cosmology¶
Analytic background and growth functions now require exactly three physical
neutrino masses in eV. This also applies to w0waCDMCosmology.m_nu.
Scalar inputs, including zero and traced scalars, raise ValueError; they are
not silently interpreted as a total mass or split into equal masses.
# Choose the physical splitting explicitly; these are different models.
E = jaxace.E_z(1.0, 0.3, 0.67, mν=(0.02, 0.02, 0.02), Neff=3.044)
E_one_massive = jaxace.E_z(1.0, 0.3, 0.67, mν=(0.06, 0.0, 0.0), Neff=3.044)
Omitting the masses selects (0.0, 0.0, 0.0): three massless species with
the documented Neff prescription. The retired scalar model represented only
one species, so even its zero-mass result is not the new default radiation
model. To reproduce the temperature-only prescription, pass it explicitly.
Hybrid is now the default. For massive species the value can change above
Neff=3.044; at the switch the value agrees but AD uses the radiation-side derivative.
Replacing the seven-output emulators¶
The two ACE_mnuw0wacdm_*_basis keys were removed, not aliased. Their 16 replacements
are new networks. Rebuild inputs and reselect outputs by label. The old flat
vector ended in Mnu, w0, wa; the new flat, default-helium, one-mass vector ends
in w0, wa, Neff. Both have length nine. One-mass models fix (0.06, 0, 0) eV;
only degenerate models take a mass sum. The sigma8 key always means total matter
at zero redshift; its observed range is not a rectangular prior.
Read model.get_emulator_description()["parameters"] and ["outputs"] on the
selected model. There are eleven outputs, not seven: for example output[2] is
now sigma8_cb_0, not the drag scale.
0.7.0¶
New reusable interpolation objects¶
The release adds CubicSpline, CubicSplinePlan, and AkimaSplinePlan.
Use a prepared spline when the ordinates and source knots are fixed but the query grid changes:
Use a plan when both grids are fixed but the ordinates change:
The one-shot functions remain available for single-use interpolation.
AkimaSpline constructor change¶
AkimaSpline is now a frozen registered JAX PyTree and supports the symmetric
public constructor:
The previous stored-coefficient form remains accepted:
However, the object is no longer a NamedTuple. Code relying on tuple-specific
operations such as indexing, unpacking, len(spline), or tuple(spline) must
use the named fields instead:
This is an intentional public API change in the 0.7.0 feature release.