Repository navigation
feat: lens analyses default to setup="auto"; explicit use_jax opts out (R6) - #894
Merged
Merged
Conversation
…t (R6) 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.setup="auto"is the default foral.AnalysisImaging,al.AnalysisInterferometer,al.AnalysisPointandal.AnalysisWeak, with the PyAutoGalaxy precedence:setuppassed → as given (None= opt-out); else explicituse_jax→ manual opt-out; else auto.use_jaxdefaults toNone; each class keeps its old backend for the opt-out path (AnalysisWeakstays NumPy).raise_if_setup_unresolvedno longer raises for the defaulted setup: a default-constructed analysis evaluated before a fit (e.g.analysis.log_likelihood_function(instance)in a script) runs with the constructor backend, as before the flip. An explicitly passedsetupthat was never resolved still raises.lazy_sparse_operator="off"where they compare against a dense reference.API Changes
al.AnalysisImaging/Interferometer/Point/Weak:use_jax: Optional[bool] = None,setupdefaults to"auto"; explicituse_jaxwith nosetupopts out.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
al.AnalysisImaging(dataset, use_jax=None, setup="auto", ...);AnalysisInterferometer,AnalysisPoint,AnalysisWeaklikewise.raise_if_setup_unresolvedskips analyses whose setup was defaulted.Migration
al.AnalysisImaging(dataset=dataset, use_jax=True)(orsetup=None).Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code