Skip to content

feat: image_with_points.png for the point-source chi-squared domains - #6

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/point-source-image-overlay
Oct 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/point-source-image-overlay

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Both point-source domains (point_source_image_chi_squared and point_source_source_chi_squared) now render a third figure, image_with_points.png: the dataset image with the observed positions as hollow white rings, plus the critical curves.

  • Image-plane fit: the model positions are also drawn, as red crosses.
  • Source-plane fit: only the observed positions are drawn, because its model data lies in the source plane.

The point simulator now also writes data.fits, psf.fits and noise_map.fits (PSF-convolved PointSource images, intensity = flux × |magnification|, noise_seed=1, reproducible byte-for-byte). The ensure_dataset sentinel moves to data.fits, so stale dataset folders regenerate. keep_dataset_and_fit gains extra_pngs=. Once merged and the Eyes board is re-rendered, the figure appears in PyAutoEyes.

Part of PyAutoLens#779.

Scripts Changed

  • scripts/misc/simulators/point_source.py — also writes the imaging FITS; docstring updated.
  • scripts/point_source_image_chi_squared/visualization.py, scripts/point_source_source_chi_squared/visualization.py — load data.fits, pass image=, keep image_with_points.png.
  • _viz_cli.py — extra_pngs kwarg; point_source sentinel set to data.fits.
  • true_models/point_source.py — SOURCE_FLUX, IMAGE_PIXEL_SCALES.
  • gallery/viz_manifest.yaml, GALLERY.md — rebuilt (64 → 66 figures; only the two new entries added, dataset.png and fit.png bytes unchanged).

Upstream PR

PyAutoLabs/PyAutoLens#780 (must merge first; the producers need its AnalysisPoint(image=) visualization)

Test Plan

  • Both producers run locally against the PR #780 library and exit 0; both figures inspected by eye.
  • python gallery/gallery_build.py --check passes.
  • CI may fail until #780 is merged and released, if CI runs producers against released PyAutoLens.

Known follow-up (not in scope)

The critical curve renders as four disconnected arcs on this 100×100, 0.05" grid. This comes from the existing critical-curve computation and is not introduced here.

Readiness

Heart readiness at ship time: YELLOW. The reasons:

  • workspace validation not passing (1 failed, cloud#39224774724: euclid scripts/tools/diagnose_latent.py)
  • manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • release validation incomplete: no rehearsal for current source

The Heart door read RED at task start. The human authorized development on 2026-10-21 ("I override, go"), and none of these reasons involve point-source code.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

… (PyAutoLens#779)

The point simulator also writes data/psf/noise_map FITS (PSF-convolved point
images); both producers pass image= and keep image_with_points.png.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 88157ba into main Oct 21, 2026
1 of 2 checks passed
@Jammy2211
Jammy2211 deleted the feature/point-source-image-overlay branch October 21, 2026 10:40
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