Skip to content

feat: mirror rendered figures to an opt-in Eyes scratch folder (lens) #8

Closed

Description

@Jammy2211

Overview

Phase 2 of the Eyes scratch mirror. Phase 1 (autogalaxy/autofit/autocti_visualization, merged 2026-10-21, e.g. autogalaxy_visualization#5) added an opt-in PYAUTO_EYES_SCRATCH mirror so figures can be inspected on the fly before any PR or CI. This ports the same change, exactly as merged, to autolens_visualization, so lens figures land in $PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/ (e.g. eyes/autolens/imaging).

Plan

  • _viz_cli.py: add EYES_LIB = "autolens", mirror_to_scratch() and the python _viz_cli.py scratch [domain ...] entry point (merged around the feat: point domains keep image_with_points.png and fit_image_with_points.png #7 extra_pngs change)
  • gallery/gallery_run.sh: mirror each producer's domain that succeeds; a failed mirror never fails the run; unset = no-op
  • scripts/misc/test/test_eyes_scratch.py: hermetic tests (run by the existing lint.yml pytest leg), plus AGENTS.md and README notes
  • PyAutoBrain skills/eyes/eyes.md: drop the "lens support lands in phase 2" note so the section covers all four instances
Detailed implementation plan

Affected Repositories

  • autolens_visualization (primary)
  • PyAutoBrain

Branch Survey

Repository Current Branch Dirty?
./lens/autolens_visualization main clean
./organs/PyAutoBrain main clean

Suggested branch: feature/eyes-scratch-mirror-lens

Implementation Steps

  1. Port autogalaxy_visualization merge 41be603a: _viz_cli.py (import os; shutil already imported), gallery/gallery_run.sh, scripts/misc/test/test_eyes_scratch.py, AGENTS.md, README.md, with autogalaxy -> autolens.
  2. All lens domains render under scripts/<domain>/images/ (cross-checked against gallery/viz_manifest.yaml); cluster's nested point_<i>/ subfolders are preserved.
  3. Brain skills/eyes/eyes.md: list autolens in the <lib> names and remove the phase-2 caveat.
  4. Tests: ruff check/format, pytest scripts/misc/test/, Brain skill tests, a hermetic mirror run plus one real imaging run.

Key Files

  • _viz_cli.py - mirror helper and CLI entry point
  • gallery/gallery_run.sh - per-producer mirror
  • scripts/misc/test/test_eyes_scratch.py - hermetic tests
  • PyAutoBrain skills/eyes/eyes.md - active image work section

Original Prompt

Click to expand starting prompt

Eyes scratch mirror: phase 2 (autolens_visualization)

Consequence: judge
Autonomy: human-required
blocked-by: #7 (task point-image-fit-filename; that PR also edits _viz_cli.py)

@autolens_visualization

Phase 1 shipped on 2026-10-21; record complete/2026/10/eyes-scratch-mirror.md. Port the same change, exactly as merged in autogalaxy_visualization#5, to lens/autolens_visualization:

  • _viz_cli.py: EYES_LIB = "autolens", mirror_to_scratch(), and the scratch entry point
  • gallery/gallery_run.sh: mirror each producer that succeeds
  • scripts/misc/test/test_eyes_scratch.py, plus the AGENTS.md and README notes
  • Drop the "lens support lands in phase 2" note from PyAutoBrain skills/eyes/eyes.md

The result is figures in $PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/, e.g. /mnt/c/Users/Jammy/Science/scratch/eyes/autolens/imaging.

Activity

  1. Jammy2211 commented on Oct 21, 2026

    @Jammy2211
    ContributorAuthor

    PRs open: #9 (port) + PyAutoLabs/PyAutoBrain#530 (eyes.md caveat drop). Consequence judge, awaiting human /prm. Heart YELLOW at ship (pre-existing, acknowledged by human): manifest drift (1 mismatch vs repos.yaml); release validation stale (PyAutoArray).

  2. Jammy2211 commented on Oct 21, 2026

    @Jammy2211
    ContributorAuthor

    Shipped. Merged via /prm on 2026-10-21. Every CI leg was green.

    • autolens_visualization#9 (f8f759f): mirror_to_scratch() and the scratch entry point, the gallery_run.sh mirror, tests and notes
    • PyAutoBrain#530 (2b8bc9f4): the /eyes text now covers autolens

    With PYAUTO_EYES_SCRATCH set, figures land in $PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/. The Eyes scratch mirror now covers all four visualization instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions