Repository navigation
feat: searches default to number_of_cores="auto" (R6) - #1800
Merged
Merged
Conversation
Part of PyAutoLabs/PyAutoGalaxy#759. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
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
Part of PyAutoLabs/PyAutoGalaxy#759 (likelihood-lifecycle ruling R6: flip the defaults after the 2026.11.25.1 opt-in release). Same branch
feature/likelihood-lifecycle-r6-default-autoin PyAutoArray, PyAutoFit, PyAutoGalaxy, PyAutoLens and autolens_workspace_test. Merge order: Array → Fit → Galaxy → Lens → autolens_workspace_test.number_of_cores="auto"(Nautilus, Dynesty static/dynamic, Emcee, Zeus, NSS, BlackJAX NUTS/SMC, the abstract nest/MCMC bases, the search template andsettings): resolved byresolve_number_of_coresat fit start — 1 for a JAX analysis or an expectation-propagation factor search, otherwise the detected cores, capped byresources_per_eval()when the analysis declares it.GridSearchstays atnumber_of_cores=1(human ruling):"auto"hung the test suite through the grid search's ownProcessjob pool; its docstring says so.number_of_cores > 1); the interpolator's covariance fit pins itsDynestyStaticto one core.API Changes
Default
number_of_coreschanges from1to"auto"for every search exceptGridSearch. Explicit ints are honoured as before.See full details below.
Test Plan
pyauto-heart smoke --affected-by PyAutoFitagainst the task worktree: 7/8 workspaces; the one failing script (autolens_workspace_testjax_assertions/fit_interferometer_sparse_operator.py) encodes the old lazy-off default and is fixed by the companion autolens_workspace_test PR (passes against this branch)Full API Changes (for automation & release notes)
Changed
number_of_cores: Union[int, str] = "auto"onNonLinearSearch,AbstractNest,AbstractMCMC,Nautilus,DynestyStatic,DynestyDynamic,Emcee,Zeus,NSS, BlackJAX NUTS/SMC andaf.Settings.GridSearch(number_of_cores=1)unchanged.Migration
number_of_cores=1.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code