test(jax): add FitImaging sparse-operator parity script#69
Merged
Conversation
Mirror of the test deleted from PyAutoLens test_autolens/imaging/test_simulate_and_fit_imaging.py (test__simulate_imaging_data_and_fit__complex_fit_compare_mapping_matrix_sparse_operator). The pytest version pulled the JAX import into the library unit-test run and broke PyAutoBuild CI. Lifting it here keeps the parity coverage without forcing JAX into PyAutoLens' env, matching the precedent set by the existing scripts/jax_assertions/sparse_operators.py. Co-Authored-By: Claude Opus 4.7 (1M context) <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
scripts/jax_assertions/fit_imaging_sparse_operator.pyperforming a cross-implementation parity check on the JAX-acceleratedImagingSparseOperatorpath inside a multi-planeFitImagingfit (mapping-matrix vsapply_sparse_operator(), asserting agreement oncurvature_matrixandregularization_matrixtortol=1e-4).jaxinto the PyAutoLens unit-test env.scripts/jax_assertions/sparse_operators.py(autoarray-level analogue, see PR test(jax): add scripts/jax_assertions/ with assertions moved from PyAutoArray #68).Companion PR
Test plan
python scripts/jax_assertions/fit_imaging_sparse_operator.pyprintsfit_imaging_sparse_operator: all assertions passed.🤖 Generated with Claude Code