Migrating from 2.x to 3.0¶
Version 3.0 replaces the Galactic prior, so most of its changes are in logp_galactic_structure and the halo density.
2.x code that passes a removed keyword fails with a TypeError, and code that imports a removed function fails with an ImportError.
Each table maps the 2.x usage to the 3.0 usage.
The changelog lists every change.
Galactic prior¶
2.x usage |
3.0 usage |
|---|---|
|
Remove the import. |
|
Pass |
|
Remove them. The disk heights follow from the vertical Jeans equation. Pass |
|
Pass |
|
Pass |
|
Pass |
|
Pass |
|
Pass |
|
Remove them. The thin-disk [Fe/H] and ages come from its enrichment and radial-migration model, which takes no keyword. |
|
Pass |
|
It returns |
The defaults |
The defaults are 8.275 kpc and 0.0208 kpc. Pass the old values to keep the old Sun. |
The disk scale lengths |
The defaults are 2.74 and 1.9 kpc, the scale lengths of the surface density. Pass the old values to keep the old disks. |
A non-finite |
Pass finite labels. Non-finite labels raise |
Fitting¶
2.x usage |
3.0 usage |
|---|---|
|
Remove them. They default to None and raise a |
|
The default is 5000, sampled with the distance priors. A larger value lowers the Monte Carlo noise of the evidence. |
The |
It adds the normalized log-density of the |
|
They use |
|
It applies, with |
Results that change¶
Fits with the default Galactic prior change, because each of its components changed and a bar was added. The model weights now include the Laplace volume of each model’s fit, and the model selection includes the distance priors, so the evidence and the posterior change for every star. The entries marked (output-changing) under 3.0.0 in the changelog list each change for the same inputs and seed.