Repository navigation
Done
Description
Overview
Since R6 (PyAutoLabs/PyAutoFit#1800) every search defaults to number_of_cores="auto", so default Emcee and Zeus fits now run through a multiprocessing pool, and that pooled path is broken. With a fresh output folder and number_of_cores=2, Emcee returns log_likelihood = inf and then hangs at interpreter exit, because its SneakyPool workers are never told to stop. This happens on the released 2026.11.25.1 and on main alike; number_of_cores=1 is correct on both. Pooled Zeus also gets wrong log probabilities. As a result:
- PyAutoFit main Tests (3.13) has 9 Zeus conformance tests failing with
RuntimeError: Number of contractions exceeded maximum limit!. The failure is intermittent: 3.12 passed in the same run, and the tests pass locally. - The release-integrate validation times out on
autofit_workspace/scripts/plot/emcee_plotter.py(cloud run 45815945322).
This PR puts Emcee and Zeus back on one core by default, as R6 already does for GridSearch. Fixing the pooled path itself is a separate bug.
Plan
- Set Emcee and Zeus back to a default of
number_of_cores=1, keeping"auto"as an explicit opt-in. - Explain the reason in the docstrings.
- Change the default-value assertions back to 1.
- File the pooled-path bug (wrong likelihoods, pool never shut down) separately.
Detailed implementation plan
autofit/non_linear/search/mcmc/emcee/search.py,autofit/non_linear/search/mcmc/zeus/search.py: constructor default"auto"→1; update the docstrings.test_autofit/non_linear/search/mcmc/test_emcee.py,test_zeus.py: the default-value assertions go back to== 1.- Unchanged:
resolve_number_of_cores, SneakyPool, the other searches, and the"auto"semantics. - Tests: mcmc + test_conformance_backend.py (227 passed), then the full suite on Python 3.13.
Corrective PR (Heart RED)
- Authorization: Live human, 2026-11-26, this session. Asked: "Authorize both corrective PRs for the two quoted RED reasons?" Answered: "Authorize both".
- RED reason cleared (verbatim from
pyauto-heart readiness):✗ PyAutoFit: CI failure - How the reason maps to the fix: the main Tests failures are 9 Zeus conformance tests. Those tests use the default core count, which on main resolves
"auto"to the detected cores, so they run a pool. This fix removes the pool from the default path; the issue, plan and diff cover only that. - Other RED reasons that remain:
✗ release validation FAILED (stage integrate)(partly addressed here through emcee_plotter; the autogalaxy_workspace_test routing assertions are a separate corrective PR). Heart stays RED and every release stays blocked until each reason is cleared.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Jammy2211 commentedon Nov 26, 2026
Shipped in #1803 (merged 551f617): Emcee and Zeus default to
number_of_cores=1;"auto"stays opt-in. The pooled-path bug (wrong likelihoods, pool never shut down) is tracked in PyAutoMinddraft/bug/autofit/pooled_emcee_zeus_wrong_likelihoods.md. Heart stays RED until a new release-integrate run passes.