Skip to content

refactor: remove howtofit/ from autofit_workspace (sub-2 of howtofit extraction) - #39

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/howtofit-bootstrap
Apr 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/howtofit-bootstrap

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Remove the howtofit/ tutorial tree from autofit_workspace, now that its content lives in the standalone PyAutoLabs/HowToFit repository (sub-1: PyAutoLabs/HowToFit#1). This is sub-2 of the HowToFit extraction, mirroring the HowToLens/HowToGalaxy pattern.

Tracked in issue: #38

Still pending after this lands:

  • sub-3: Update PyAutoFit library docs (docs/howtofit/) + ~31 URL references to pyautofit.readthedocs.io/.../howtofit/...
  • pyautobuild-register: Register the howtofit build target in PyAutoBuild/autobuild/config/ so PyAutoLabs/HowToFit notebooks regenerate from scripts

Scripts Changed

Deletions

  • scripts/howtofit/ — 38 files removed (chapter_1_introduction, chapter_2_scientific_workflow stub, chapter_3_graphical_models, intro/, plan/, READMEs, __init__.pys)
  • notebooks/howtofit/ — 17 files removed (matching notebook tree)

Cross-reference updates (scripts only — notebooks regenerate on next /pre_build)

  • welcome.py — dropped the - howtofit: bullet from the workspace tour docstring
  • scripts/features/graphical_models.py — added a standalone-repo GitHub link next to the first "HowToFit tutorials" mention; left the three subsequent narrative references intact (well-defined by the first mention)
  • scripts/overview/overview_3_statistical_methods.py — rewrote the hierarchical-models notebook URL from Jammy2211/autofit_workspace/blob/release/notebooks/howtofit/chapter_graphical_models/tutorial_4_hierachical_models.ipynb → PyAutoLabs/HowToFit/blob/main/notebooks/chapter_3_graphical_models/tutorial_4_hierachical_models.ipynb

Left intact (scope of sub-3):

  • scripts/cookbooks/multiple_datasets.py:458 — pyautofit.readthedocs.io/.../howtofit/chapter_graphical_models.html URL; sub-3 decides the library-doc URL scheme

Root docs

  • README.rst — turned the HowToFit section into a standalone-repo pointer; updated the top-of-README link from the readthedocs URL to PyAutoLabs/HowToFit; removed the howtofit bullet from the examples-structure list
  • scripts/README.rst, notebooks/README.rst — dropped the howtofit bullet from the Beginner folder list
  • CLAUDE.md — dropped the howtofit/ line from the repo-structure map

CI config

  • config/build/no_run.yaml — removed the two now-orphaned entries (tutorial_8_astronomy_example, howtofit/chapter_1_introduction/tutorial_5_results_and_samples) that targeted the deleted tree

Notebooks that still mention HowToFit (stay stale until next /pre_build)

  • notebooks/features/graphical_models.ipynb, notebooks/cookbooks/multiple_datasets.ipynb, notebooks/overview/overview_3_statistical_methods.ipynb — these match their .py counterparts and will regenerate from the edited scripts the next time PyAutoBuild's generate.py runs. Standard workspace rule (never edit .ipynb directly).

Test Plan

  • Smoke-test the 6 scripts in smoke_tests.txt with PYAUTO_TEST_MODE=2 → 6/6 pass locally
  • Syntax-check all edited .py files → clean
  • grep -rn -i "howtofit" audit → only intentional references remain (repo-pointer prose, the sub-3-deferred readthedocs URL, and the notebooks awaiting regen)
  • CI url_check.yml passes on this PR

🤖 Generated with Claude Code

HowToFit lectures now live in the standalone PyAutoLabs/HowToFit repo
(sub-1: PyAutoLabs/HowToFit#1). Delete scripts/howtofit/ (38 files) and
notebooks/howtofit/ (17 files), and update 8 cross-reference files to
point at the new repo.

Non-URL references rewritten to link out to
https://github.com/PyAutoLabs/HowToFit; readthedocs URL references are
deferred to sub-3 (PyAutoFit library doc updates).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 22, 2026
@Jammy2211
Jammy2211 merged commit 4f73fe8 into main Apr 22, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/howtofit-bootstrap branch April 22, 2026 13:37
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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