Repository navigation
fix: Emcee and Zeus default to one core until their pooled path is fixed - #1803
Merged
Merged
Conversation
R6 (#1800) made number_of_cores="auto" the default, so default Emcee and Zeus fits ran through their multiprocessing pool, which is broken (Emcee returns log_likelihood=inf and leaves SneakyPool workers running at exit; pooled Zeus gets wrong log probabilities). The default goes back to 1 for these two searches, as for GridSearch; "auto" stays an explicit opt-in. Closes #1802 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
R6 (#1800) made
number_of_cores="auto"the default for every search, so a defaultaf.Emcee()oraf.Zeus()fit now runs through a multiprocessing pool, and that pooled path is broken:log_likelihood = inf, then hangs at interpreter exit because its SneakyPool workers are never sent a stop signal. The released 2026.11.25.1 behaves the same; 1 core is correct on both.Number of contractions exceeded maximum limit!).This PR sets both searches back to a default of
number_of_cores=1, as R6 already does for GridSearch, and explains why in their docstrings."auto"and explicit counts still work as an opt-in. Fixing the pooled path itself is tracked in PyAutoMinddraft/bug/autofit/pooled_emcee_zeus_wrong_likelihoods.md.Closes #1802.
API Changes
Default value only:
Emcee(number_of_cores=...)andZeus(number_of_cores=...)now default to1instead of"auto", the same as before R6. No signatures change.Test Plan
test_autofit/non_linear/search/mcmc+test_conformance_backend.py: 227 passed, 1 skipped.autofit_workspace/scripts/plot/emcee_plotter.py(the release-integrate timeout), with a fresh output folder each time: on library main it hangs until the 150s cap (exit 124); on this branch it completes in 15s."auto"(main resolves to the detected cores), so CI is the check.Corrective PR (Heart RED)
✗ PyAutoFit: CI failure.emcee_plotter.pytimeout in✗ release validation FAILED (stage integrate)./prm.🤖 Generated with Claude Code