Repository navigation
test: move positions_threshold fixture off the symmetry axis - #861
Merged
Merged
Conversation
The lens centre (0.1, 0.0) and source (0, 0) sat on the x = 0 grid axis, so the point solver's branch was a sub-ULP tie-break: a 1e-15 nudge moved the pinned threshold x43. Move the lens to (0.06, 0.08), off every grid symmetry line, and re-pin once. A 1e-6 nudge now leaves both images bit-identical and moves the thresholds by < 3e-8 relative. Closes #860 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
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
test__positions_threshold_frompinned a solver tie-break, not a threshold. The lens centre(0.1, 0.0)and source(0, 0)sat on thex = 0grid axis, so the point solver's branch was decided by floating-point noise: a 1e-15 nudge moved the pinned threshold ×43 (PyAutoArray#519 flipped it once already, PyAutoLens#721). The lens now sits at(0.06, 0.08), off every grid symmetry line (x = 0, y = 0, y = ±x), and the two thresholds are re-pinned once.Closes #860
API Changes
None — test-only change.
Test Plan
pytest test_autolens -x: 1021 passed, 1 xfailed(0.1, 0.0)(0.06, 0.08)At ±1e-5 the new fixture still moves < 9.3e-7; at ±1e-4 it snaps to a neighbouring solver cell (
pixel_scale_precision=0.001), as expected.Not in scope
test__positions_likelihood_from__mass_centre_radial_distance_minuses the same on-axis tracer and carries its own knife-edge position pins. The Witness names only the threshold pins, so it is left as is; it can follow up.Validation checklist (--auto run — plan was not pre-approved)
🤖 Generated with Claude Code