Repository navigation
Description
Overview
The dataset_1d database guide chain cannot run from a fresh checkout: scripts/dataset_1d/advanced/database/start_here.py loads dataset/dataset_1d/simple/norm_*/info.json for every norm, but no simulator under scripts/dataset_1d/simulators/ ever writes info.json, so a fresh run raises FileNotFoundError before any model-fit starts. autocti_workspace has no CI, which is why this went unnoticed (found 2026-08-19 during downstream validation of PyAutoLabs/PyAutoFit#1504; evidence on PyAutoLabs/PyAutoFit#1486).
Plan
- Mirror the autolens database guide pattern: define the (hypothetical)
infodictionary inline, with prose noting it could instead be stored alongside each dataset as aninfo.jsonand loaded from there. - Delete the dead
info_listloop (built but never used; the fit currently passes the last loop iteration'sinfo) and the now-unusedimport json. - Validate by wiping the generated dataset + database and re-running the chain fresh under
PYAUTO_TEST_MODE=1.
Detailed implementation plan
Affected Repositories
- autocti_workspace (primary, only)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./autocti_workspace | main | clean |
Suggested branch: feature/database-guide-info-inline
Implementation Steps
- In
scripts/dataset_1d/advanced/database/start_here.py, replace the__Info__block's file-read loop (lines ~160-168) with an inlineinfo = {...}dict of hypothetical charge-injection settings, keeping the existing narrative framing. - Reword the block's prose: the dictionary is defined inline here; for real large-dataset fits it would be stored per dataset (e.g.
info.json) and loaded instead. - Remove
import json(line 28) — its sole use dies with the loop. - Notebook twin (
notebooks/.../database/start_here.ipynb) is left to release-time regeneration per workspace convention (notebooks are generated from scripts). - Validate: remove
dataset/dataset_1d/simple/,database.sqlite, and staleoutput/for this chain; runPYAUTO_TEST_MODE=1 python scripts/dataset_1d/advanced/database/start_here.pyfrom the repo root — must complete from a fresh state with noinfo.jsonpresent.
Key Files
scripts/dataset_1d/advanced/database/start_here.py— the only actualinfo.jsonread in the repo; otherinfo.jsonmentions (results/start_here.py,database/examples/samples.py) are prose-only file lists and need no change.
Original Prompt
Click to expand starting prompt
Bug in autocti_workspace: the database guide chain cannot run from a fresh checkout. scripts/dataset_1d/advanced/database/start_here.py line ~165 reads dataset/dataset_1d/simple/norm_*/info.json for every norm, but no simulator under scripts/dataset_1d/simulators/ ever writes info.json, so a fresh run raises FileNotFoundError before any model-fit starts. The repo has no CI, which is why it went unnoticed (found 2026-08-19 during downstream validation of a library change). Fix in autocti_workspace only: write info.json in the dataset_1d simulators, or drop the info.json read from the database scripts.
Activity
Merge pull request #21 from PyAutoLabs/feature/database-guide-info-in…