Repository navigation
fix: XLA census PSF anchors stale after PyAutoArray convolver move - #534
Merged
Merged
Conversation
PyAutoArray main moved the convolver.py functions down ~60 lines, so the hard-coded PSF StageRule / CENSUS_ANCHORS ranges no longer enclosed them and test_census_anchors_verify_against_the_installed_pyautoarray failed. Ranges re-derived with ast against PyAutoArray origin/main. Closes #533 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
Fixes the red
lintonmain(since 2026-11-22): PyAutoArraymainmoved the functions inautoarray/operators/convolver.pydown by about 60 lines, so the XLA census's hard-coded PSF line ranges no longer enclosed them andtest_census_anchors_verify_against_the_installed_pyautoarrayfailed. Every range was re-derived withastagainst PyAutoArrayorigin/main(e70af85d):convolved_mapping_matrix_from_convolved_mapping_matrix_over_sampled_np_from_convolved_mapping_matrix_over_sampled_jax_from_convolved_over_sampled_jax_from)The stage rules, the
requires=rule,_is_mapping_convolution(the census's mapping-convolution check),CENSUS_ANCHORSand the comment move together. Unblocks autolens_profiling#532's lint.Follow-up (out of scope, cheap):
census_anchor_status()already resolves live function spans withast, so the rules could take their ranges from those spans at census time instead of hard-coding line numbers; that would stop this recurring each time PyAutoArray moves code.Closes #533
Scripts Changed
scripts/misc/likelihood_breakdown/xla_attribution.py— PSF convolutionStageRuleranges,requires=,_is_mapping_convolutionandCENSUS_ANCHORSre-derived from current PyAutoArrayconvolver.pyscripts/misc/likelihood_breakdown/test/test_xla_attribution.py— docstring quoting the old rangeTest Plan
ruff check .andruff format --check .cleanpytest scripts/misc/*/test -qagainst PyAutoArrayorigin/main: 1907 passed, 6 skipped, 0 failed (including the anchor test)lintworkflow green on this PR (Witness:test_census_anchors_verify_against_the_installed_pyautoarraypasses)Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code