feat: PYAUTO_SMALL_DATASETS + canonical auto-sim for the cluster scripts#250
Merged
Conversation
…er scripts
cluster/{modeling,start_here}.py: manual three-file existence guards ->
al.util.dataset.should_simulate (imaging convention; carries small-mode
delete-and-regenerate). lenstool/data.py: 96 MB mosaic/cutout leg skipped
under PYAUTO_SMALL_DATASETS=1 (visualization-only product). lenstool/
modeling.py: the 72-param refit runs only under LENSTOOL_EXAMPLE_RUN_FIT=1,
never PYAUTO_TEST_MODE (sweep env put the factor-graph search into reduced-
iterations mode -> 600s+ hang; structural pass always runs). Evidence under
the exact sweep env, fresh regen: start_here 24s, modeling 26s, lenstool
data 2s, lenstool modeling 175s (0.068" parity intact).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PUuWXiS23FvmfQPLvMNjeM
This was referenced Jul 9, 2026
Merged
Closed
Jammy2211
added a commit
that referenced
this pull request
Jul 9, 2026
docs: Lenstool example on the canonical CSV API end to end (stacked on #250)
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
PYAUTO_SMALL_DATASETS + canonical auto-simulation for the cluster path (issue #249; the final filed item of the cluster home straight). The diagnosis was good news: the libraries' small-mode hooks (PointSolver fixed-pair short-circuit, 15×15 grid caps) already make the cluster scripts fast — the historical "test mode breaks it" parking simply predates them, and nothing ever wired the scripts in.
scripts/cluster/{modeling,start_here}.py— hand-rolled three-file existence checks replaced by the canonicalal.util.dataset.should_simulateguard (matching imaging, and the weak twin shipping via PyAutoLens#581), which also carries small-mode's delete-and-regenerate semantic so smoke datasets actually get built small.scripts/cluster/lenstool/data.py— the 96 MB RELICS mosaic download/cutout (a visualization-only product) is skipped underPYAUTO_SMALL_DATASETS=1; the Mahler model files (~85 KB) still download so the modeling products are complete.scripts/cluster/lenstool/modeling.py— the production-scale refit now runs only under its explicitLENSTOOL_EXAMPLE_RUN_FIT=1opt-in, neverPYAUTO_TEST_MODE(the sweep env put the 72-parameter factor-graph search into reduced-iterations mode — a 600 s+ hang; the structural pass is the model composition +model.info, which always runs).Evidence (fresh dataset regeneration, exact sweep env from
config/build/env_vars.yamldefaults)cluster/start_here.pycluster/modeling.pycluster/lenstool/data.pycluster/lenstool/modeling.pyCompanion PyAutoBuild PR removes the two
no_run.yamlcluster lines — the task's success criterion.Scripts Changed
scripts/cluster/modeling.py,scripts/cluster/start_here.py,scripts/cluster/lenstool/data.py,scripts/cluster/lenstool/modeling.py(+ navigator catalogue regen).Merge coordination
Three open branches touch the navigator catalogue (this, point-pairing-policies #248, and the weak thread) — whichever merges last regenerates
llms-full.txt/workspace_index.jsonon main (two commands, noted in all three).Validation checklist (--auto run — in-session directives)
🤖 Generated with Claude Code