Skip to content

test: repin Isothermal clamp-artefact pins (companion to PyAutoGalaxy#631) - #754

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/jax-grad-nan-zero-components
Sep 27, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/jax-grad-nan-zero-components

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Companion to PyAutoLabs/PyAutoGalaxy#631. Its PR removes the elliptical Isothermal axis_ratio <= 0.99999 clamp, and this PR repins the 6 tests that had pinned that clamp's artefact (q = 0.99999 at angle 0) instead of a round lens.

Forcing ell_comps=(0, 5e-6), i.e. the old clamped q at angle 0, reproduces every old pin under the new code (34/34 tests in the three files). The same q at another orientation fails them. So the pins encoded the clamp's orientation rather than physics. The new values are the exactly-circular result: Isothermal(0, 0) equals IsothermalSph to 5e-15.

API Changes

None — internal changes only (test pins).

Test Plan

  • test_autolens: 762 passed, 1 xfailed (with the PyAutoGalaxy branch)
  • Every pytest.approx in the 6 tests was recorded, not only the first failing assert (the delaunay test had 5 more moved asserts)
  • The two test_result.py knife-edge comments are updated (PyAutoLens#721 pointer kept)
Repinned literals
  • analysis/test_result.py: positions_threshold_from 0.0019534291 → 0.00098983199 (factor 5: 0.0097671455155 → 0.0049491599483); mass_centre_radial_distance_min positions swap branch/order
  • imaging/test_simulate_and_fit_imaging.py: pixelization, __sub_2 and delaunay_split reconstruction / figure_of_merit / model-image pins
  • interferometer/test_simulate_and_fit_interferometer.py: pixelization reconstruction (10 values); figure_of_merit unchanged

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Companion to PyAutoLabs/PyAutoGalaxy#631, which removes the clamp; the new
values are the exactly-circular result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 27, 2026
@Jammy2211
Jammy2211 merged commit 897c2f7 into main Sep 27, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/jax-grad-nan-zero-components branch September 27, 2026 19:26
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant