Repository navigation
feat: readable cluster point_solver.png (per-source span, display grid, r-labels) - #796
Merged
Merged
Conversation
…d, r-labels) Closes #795. - Every panel spans the source's own images, rejected candidates and observed positions (padded, square), widened so its ticks fall on round values. A galaxy-scale grid only just larger than its images is shown whole. - When the solver's step-0 triangles are too small to draw at that span, the figure re-solves on a coarse display grid (pixel scale min(span/10, closest separation/1.6), same precision and magnification threshold). The display grid is used only if it recovers the solver's images and rejected candidates; otherwise the solver's own steps are drawn. The legend marks it "Triangles tested (display grid)". The modelling solver is never changed. - Rejected candidates are labelled r1, r2 (grey italic) beside each candidate; the "rejected by magnification_threshold" box, its arrows and the dead placement helpers are removed. - Critical curves of the source's own plane come from point_sources.curves_for_planes on the full tracer, in the #794 style (tangential + radial); the LensCalc path is dropped and VisualizerPoint no longer passes the last plane's curves. 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
Makes
point_solver.pngreadable for cluster-scale models (#795), usingcluster_point_1.pngas the approved design:min(span/10, closest image separation/1.6), with the same precision and magnification threshold as the real solver. The display grid is used only if it recovers the solver's images and rejected candidates; otherwise the figure draws the solver's own steps. The legend reads "Triangles tested (display grid)". The modelling solver and its grid are never changed.point_sources.curves_for_planes, drawn in the feat: cluster/multi-source point figures — unified dataset, global fit, fit_per_image, with_points, per-redshift curves #794 tangential and radial style.Closes #795.
API Changes
None to the public plotting API:
aplt.plot_point_solverkeeps its signature.PlotterPoint.point_solver(image_plane_lines=None)now computes the source's own-plane curves on the per-source extent, andVisualizerPointno longer passes the last plane's curves.Private helpers in
point_solver_plotswere replaced (see below).See full details below.
Test Plan
python -m pytest test_autolens/: 936 passed, 1 xfailed (at head b1754a7)test_autolens/point/plot/cover extent rounding, the display pixel scale, the recovery check and labelsFull API Changes (for automation & release notes)
Removed
point_solver_plots._critical_curve_lines_from,_rejected_label_placement,_segment_hits,rejected_corner_from(private; annotation box removed)Added
point_solver_plots.round_extent_from(centre, half_width)point_solver_plots.source_extent_from(points, min_width=0.0)point_solver_plots.display_pixel_scale_from(extent, points)point_solver_plots.display_solver_from(solver, extent, pixel_scale)point_solver_plots.recovers(reference, found, tolerance)point_solver_plots.image_labels_from(data)Changed Behaviour
point_solver_plots.point_solver_data_from: per-source extent; may use a display solver for the drawn stepsPlotterPoint.point_solver:image_plane_lines=Nonenow computes own-plane curves on the figure extentVisualizerPoint: callsplotter.point_solver(fit=fit)without the last plane's curvesMigration
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code