Migrating from 1.x to 2.0¶
Version 2.0 removes some arguments, rejects some inputs that 1.x ignored, and changes some results.
No public name was renamed. 1.x code that uses a removed argument, attribute or import fails with a TypeError, AttributeError or ImportError, and a rejected input raises ValueError.
Each table maps the 1.x usage to the 2.0 usage.
The changelog lists every change.
Results from 2.0 differ from those in the paper (Speagle et al. 2025, arXiv:2503.02227). See Results that change.
Fitting¶
1.x usage |
2.0 usage |
|---|---|
|
Remove the argument. The |
|
Remove the argument. Each model checks its own convergence. |
|
The defaults are |
|
Pass |
|
It returns 9. The ninth is |
|
Pass |
|
It now evaluates the Galactic prior without model labels. |
|
Unknown keywords raise |
An integer 0/1 |
Nothing to change: it now masks bands, so the results change. Boolean masks give the same results as before. |
|
Pass both, or neither. One alone raises |
An object with no valid bands stopped |
|
Zero probability returned |
It returns |
Priors and dust¶
1.x usage |
2.0 usage |
|---|---|
|
Pass the A(V) range of the fit, for example |
|
It adds |
|
Pass |
|
Remove the call. The method no longer exists. |
|
Use |
|
Pass one label per distance. It raises |
Stellar models and grids¶
1.x usage |
2.0 usage |
|---|---|
|
Remove |
|
Pass at least 2 distinct values for each. |
|
Use the documented argument names. Unknown keywords raise |
|
Pass a label inside the grid. It raises |
|
|
|
The error propagates. |
|
The original error type passes through. Catch that type. |
|
Remove the attributes. They were unused. |
|
Use |
Old |
The first load builds a |
Data¶
1.x usage |
2.0 usage |
|---|---|
|
|
|
|
|
The columns are present as one-value columns when the grid is constant in them. Do not index by column position. |
|
The cuts apply whatever |
|
It raises |
Offsets¶
1.x usage |
2.0 usage |
|---|---|
|
Remove the argument. The function always uses Gaussian leave-one-out weights. |
|
Remove the argument. |
|
Pass |
|
Remove the arguments. Input validation always runs, and |
|
Pass a boolean or 0/1 array of shape |
Plotting¶
1.x usage |
2.0 usage |
|---|---|
|
Remove the keyword. It raises |
|
The default is |
|
The default range is 0 to 20 mag. Pass |
|
The defaults are |
|
Pass |
|
It draws on |
Package¶
1.x usage |
2.0 usage |
|---|---|
Python 3.9, numpy below 2.0 |
Use Python 3.10 or later and numpy 2.0 or later. |
Building from source with an old |
Use |
|
It raises the original |
|
Install the package. An uninstalled tree reports |
Results that change¶
The changelog lists each change in results for the same inputs and seed. The entries marked (output-changing) change fit results, and most of them are in the first “Fixed” section under 2.0.0. Other entries change plotted values and the log-likelihoods of the cluster and line-of-sight fits.