Commit e56d6db
fix: numpy-2.x safety in SamplesMCMC.median_pdf
np.percentile with a list [50] returns a shape-(1,) ndarray; float() on
that is a deprecated conversion that errors on numpy >= 2.4. Pass the
percentile as a scalar so the result is a scalar and float() is safe.
Unblocks searches/Emcee.py in autofit_workspace_test smoke tests on
Python 3.13 + numpy 2.4.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 360c5c8 commit e56d6db
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments