Repository navigation
feat: mirror rendered figures to an opt-in Eyes scratch folder (lens) - #9
Merged
Merged
Conversation
Port of phase 1 (autogalaxy_visualization#5): mirror_to_scratch() and the `python _viz_cli.py scratch [domain ...]` entry point copy scripts/<domain>/images/ PNGs to $PYAUTO_EYES_SCRATCH/autolens/<domain>/ (folder replaced, misc skipped, no-op when unset); gallery_run.sh mirrors each successful producer. Hermetic tests in scripts/misc/test/test_eyes_scratch.py; AGENTS.md/README notes. Refs #8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 2026
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
Phase 2 of the Eyes scratch mirror: ports autogalaxy_visualization#5 exactly, with
EYES_LIB = "autolens". WhenPYAUTO_EYES_SCRATCHis set, rendered figures are copied to$PYAUTO_EYES_SCRATCH/autolens/<domain>/(for example.../eyes/autolens/imaging) for review before any PR or CI. Each mirror replaces the domain folder, skipsmisc, keeps subpaths such as cluster'spoint_<i>/, and does nothing when the variable is unset. CI never sets it. Closes #8.Scripts Changed
_viz_cli.py: addsmirror_to_scratch()and thepython _viz_cli.py scratch [domain ...]entry point, plus a docstring line. Placed after the feat: point domains keep image_with_points.png and fit_image_with_points.png #7keep_dataset_and_fit(extra_pngs=...)code, which is unchanged.gallery/gallery_run.sh: mirrors each producer that succeeds. A failed mirror never fails the run.scripts/misc/test/test_eyes_scratch.py: new hermetic tests, run by the existing lint.ymlpytest scripts/misc/test/leg.AGENTS.md,README.md: notes on the opt-in mirror.Test Plan
ruff check .andruff format --check .are cleanpytest scripts/misc/test/: 17 passedpython _viz_cli.py scratchis a no-op that prints a message and creates nothingpoint_0/,point_1/kept).gallery_run.sh weakmirrored after the render.gallery_run.sh imagingwithPYAUTO_EYES_SCRATCH=/mnt/c/Users/Jammy/Science/scratch/eyesput 22 PNGs ineyes/autolens/imaging. No tracked PNG, GALLERY.md or manifest changed.Companion: PyAutoBrain PR on the same branch, which drops the "phase 2" caveat from
skills/eyes/eyes.md.🤖 Generated with Claude Code