Skip to content

fix(howtogalaxy): should_simulate every dataset load; run under SMALL_DATASETS#30

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/howto-should-simulate-howtogalaxy
Jul 21, 2026
Merged

fix(howtogalaxy): should_simulate every dataset load; run under SMALL_DATASETS#30
Jammy2211 merged 1 commit into
mainfrom
feature/howto-should-simulate-howtogalaxy

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #29. Slice 2/3 of the HowTo should_simulate migration (mirror of merged HowToLens#39).

Scripts Changed

  • All 17 raw if not dataset_path.exists():ag.util.dataset.should_simulate(str(dataset_path)) (autogalaxy namespace) across chapters 1–4 + optional.
  • chapter_1_introduction/tutorial_3_fitting.py — fix 1st-load guard to run the correct producer (tutorial_2_data.py makes howtogalaxy; was wrongly simulators/simple.py), and add a guard for the 2nd load (simple).
  • config/build/env_vars.yaml — remove the dead howtogalaxy/ + guides/ SMALL_DATASETS-unset overrides.
  • Regenerated notebooks + workspace_index.json.

Verification

Every chapter passes on a fresh dataset/ (cloud-shard isolation) under PYAUTO_SMALL_DATASETS=1: ch1 6/6, ch2 8/8, ch3 3/3, ch4 5/5.

Heart RED at ship; opened under the corrective-PR exception scoped to workspace validation not passing (10 failed, 2026-07-20T15-09-29Z). Merge deferred to human. Slice 3/3 (HowToFit) follows.

…_DATASETS

Slice 2/3 of the HowTo should_simulate migration (mirror of HowToLens#39). Makes
every HowToGalaxy tutorial run under PYAUTO_SMALL_DATASETS=1 (16x16) for fast CI.

- Migrate all 17 raw `if not dataset_path.exists():` guards to
  `ag.util.dataset.should_simulate(str(dataset_path))` (autogalaxy namespace).
- tutorial_3_fitting: fix the 1st-load guard to run the correct producer
  (`tutorial_2_data.py` makes the `howtogalaxy` dataset; it wrongly ran
  `simulators/simple.py`) and add a guard for the 2nd load (`simple`).
- Remove the dead `howtogalaxy/` + `guides/` PYAUTO_SMALL_DATASETS-unset
  overrides (matched zero files).
- Regenerate notebooks + navigator catalogue.

Verified: every chapter passes on a FRESH dataset/ (cloud shard isolation) under
SMALL_DATASETS=1 — ch1 6/6, ch2 8/8, ch3 3/3, ch4 5/5.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 21, 2026
@Jammy2211
Jammy2211 merged commit 94d3849 into main Jul 21, 2026
10 checks passed
@Jammy2211
Jammy2211 deleted the feature/howto-should-simulate-howtogalaxy branch July 21, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(howtogalaxy): should_simulate every dataset load; run under SMALL_DATASETS

1 participant