Repository navigation
fix: JAX weak fits visualize (#614); mixed factor graphs under the default setup - #896
Merged
Jammy2211 merged 1 commit intoNov 26, 2026
Merged
Conversation
…fault setup Part of #895. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jammy2211
deleted the
feature/likelihood-lifecycle-r6d-prerelease-fixes
branch
November 26, 2026 12:39
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
Closes #895 and #614 together with the PyAutoFit and PyAutoGalaxy PRs on branch
feature/likelihood-lifecycle-r6d-prerelease-fixes. Merge order: Fit → Galaxy → Lens.AnalysisWeak.fit_for_visualization(instance)buildsFitWeak(..., xp=np), so the plotters receive a structuredShearYX2DIrregular(on the JAX pathFitWeak.model_shearwas a raw array →'ArrayImpl' object has no attribute 'grid'). The log likelihood is unchanged and the plotter is not special-cased.ResultWeak.max_log_likelihood_fitcrashed the same way and now uses the same fit. This letsAnalysisWeakkeep the R6setup="auto"default (which picks JAX).modify_before_fitand evaluate the likelihood (the adoption lives in PyAutoFit/PyAutoGalaxy); explicit disagreement still raises.API Changes
al.AnalysisWeak.fit_for_visualizationandResultWeak.max_log_likelihood_fitreturn a NumPyFitWeakon every backend.See full details below.
Test Plan
[optional]extras, jax family uninstalled): PyAutoFit 4072, PyAutoGalaxy 1601, PyAutoLens 1114 passed, 0 failedweak/modeling.pyon the default (JAX) setup, andmulti_dataset/features/imaging_and_interferometer/modeling.py+imaging_and_point_source/modeling.pywith everyuse_jax=Trueremoved — all exit 0pyauto-heart smoke --affected-by PyAutoFitagainst the task worktree: 8/8 workspaces passedtest_autolens/weak/model/test_visualizer_weak.py(2,importorskip("jax"); control reproduced the Weak-lensing visualization crashes on JAX path: fit.shear_yx lacks .grid #614 crash)test_autolens/analysis/test_factor_graph_default_setup.py(3; all failed on control)Full API Changes (for automation & release notes)
Changed
AnalysisWeak.fit_for_visualization(instance)→ NumPyFitWeakregardless of backend.ResultWeak.max_log_likelihood_fit→ built withfit_for_visualization.Fixed
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code