Repository navigation
feat: lazy_sparse_operator defaults to auto (R6); fix numba multi-mapper sparse data vector - #715
Merged
Conversation
…per sparse data vector Part of PyAutoLabs/PyAutoGalaxy#759. 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
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.lazy_sparse_operatordefaults to"auto"(general.yaml,aa.Settings): a NumPy pixelized fit of a dataset with no attached operator (directFitImaging/FitInterferometer, aggregator reloads) builds the numba sparse operator (imaging) or the NUFFT w-tilde operator (interferometer) once, caches it and reuses it. Never under JAX or inside a multiprocessing worker.lazy_sparse_operator="off"restores the dense route.data_vectorfor several mappers (e.g. two pixelized sources) built its triplets from the wrong mapper fields; it now uses each mapper'sunique_mappings(data_to_pix_unique,data_weights,pix_lengths). A PyAutoLens test (two pixelized sources, lazy vs dense) fails without this fix.API Changes
Default of
aa.Settings(lazy_sparse_operator=...)/ configinversion.lazy_sparse_operatorchanges from"off"to"auto". No signatures change.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
autoarray/config/general.yamllazy_sparse_operator: "auto"(was"off");aa.Settings.lazy_sparse_operatorresolvesNoneto"auto".Imaging.sparse_operator_for/Interferometer.sparse_operator_forbuild lazily by default.Fixed
Migration
settings=aa.Settings(lazy_sparse_operator="off")(or configlazy_sparse_operator: "off").Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code