Conversation
…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>
1 task
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
cookbooks/samples.pyandhowtofit/chapter_1_introduction/tutorial_5_results_and_samples.pyindexedparameter_lists[4]/[9]etc., which fails underPYAUTO_TEST_MODE=2and in any real search that produces fewer samples than expected. Switched to index0(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.scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.pyand the entireprojects/cosmology/subtree toautofit_workspace_developer. Both require astronomy-specific datasets (data.npyetc.) that this workspace never generated, so they've been broken for users who cloned the workspace fresh and followed the tutorial order.Test Plan
See sibling PRs:
PyAutoFit— Guard corner_cornerpy against samples < dimsPyAutoBuild— Skip EmceePlotter / NautilusPlotter under PYAUTO_TEST_MODE=2autofit_workspace_developer— Absorb astronomy example + projects/cosmology (companion move)Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com