Skip to content

Fix sample-indexing tutorials; relocate astronomy example + projects/ to developer workspace#32

Merged
Jammy2211 merged 1 commit intomainfrom
feature/autofit-smoke-cleanup
Apr 18, 2026
Merged

Fix sample-indexing tutorials; relocate astronomy example + projects/ to developer workspace#32
Jammy2211 merged 1 commit intomainfrom
feature/autofit-smoke-cleanup

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • cookbooks/samples.py and howtofit/chapter_1_introduction/tutorial_5_results_and_samples.py indexed parameter_lists[4] / [9] etc., which fails under PYAUTO_TEST_MODE=2 and in any real search that produces fewer samples than expected. Switched to index 0 (first sample) and updated the surrounding prose — the tutorials still teach how to inspect a specific sample, just using an index that is always valid.
  • Moved scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.py and the entire projects/cosmology/ subtree to autofit_workspace_developer. Both require astronomy-specific datasets (data.npy etc.) that this workspace never generated, so they've been broken for users who cloned the workspace fresh and followed the tutorial order.

Test Plan

  • Full autofit_workspace smoke sweep: 40 pass / 0 fail / 12 skip (previously 30 pass / 13 fail).
  • Tutorials read sensibly with the updated prose.

See sibling PRs:

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

…developer workspace

The result/samples walkthroughs indexed into parameter_lists[4]/[9] etc.,
which blew up under PYAUTO_TEST_MODE=2 (bypass leaves < 10 samples) and
also whenever a real search produced very few accepted samples. Switch to
index 0 (first sample) and update the surrounding prose so the example is
valid regardless of sample count.

Move tutorial_8_astronomy_example.py and projects/cosmology/ to
autofit_workspace_developer — they require astronomy-specific datasets
(data.npy etc.) that never belonged in the introductory workspace, and the
larger cosmology project was always intended as advanced material.

- scripts/cookbooks/samples.py + notebook
- scripts/howtofit/chapter_1_introduction/tutorial_5_results_and_samples.py + notebook
- scripts/howtofit/chapter_1_introduction/start_here.py + notebook (cross-ref update)
- deleted: scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.py + notebook
- deleted: projects/ (README, cosmology/*)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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