You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(reference): complete API coverage — every __all__ symbol documented (goal-13j) (#57)
Author observation.rst as the canonical home for the HRF-kernel family, HRFBold
and TemporalAverage (moved off forward.rst to avoid duplicate-object warnings).
Add the previously-undocumented symbols to their canonical pages:
- models.rst: XY_Oscillator, JansenRitTR, the 10 WilsonCowan variants
- noise.rst: the Noise base class
- forward.rst: LeadfieldReadout (+ cross-refs to observation.rst)
- utilities.rst: delay_index, and the Initializer/Array/Parameter type aliases
index.rst: name the Simulator/Network/Fitter entry points in API conventions.
Coverage audit: all 84 brainmass.__all__ symbols documented on exactly one page
(0 missing, 0 duplicated). make doctest green (257 tests, 0 failures); make html
build succeeded with 0 new broken-ref/orphan/duplicate warnings.
Co-authored-by: Chaoming Wang <wcm.brainsim@gmail.com>
-**⚠ Build-helper re-run trap (cost a clobber-and-recover cycle):** the gitignored `dev/build_case_studies.py` regenerates **all 5** notebooks (stripping outputs). After executing 3, I edited the spec + re-ran the builder to fix HORN → it **silently overwrote the 3 already-executed notebooks back to un-executed**. They showed `errors=0` but ALSO `outputs=0` (the tell). **Lesson: after ANY builder re-run, re-execute EVERY notebook, not just the changed one** — or check file size / output-count, not just exit code. (Also: `jq '.cells[].outputs[]?'` returned empty/`null` and masked this; a small Python `json.load` loop counting `output_type`/`image/png` per cell is the reliable check.)
937
937
-**Per-model API confirmations (executed):**`WongWangStep` = reduced **decision** model, `update(coherence=)` → `(r1,r2)` Hz, states `S1`/`S2`, noise via `noise_s1`/`noise_s2` (`GaussianNoise(N, sigma=…*u.nA)`); distinct from `WongWangExcInhStep`. `JansenRitStep.update` takes a 3-tuple `(M_inp*u.mV, E_inp*u.Hz, I_inp*u.mV)` via `Simulator(inputs=lambda i,t: (...))`; `eeg()` = `E−I` mV. **MEG forward from an mV source: use base `LeadFieldModel(sensor_unit=u.tesla, scale=u.nA*u.meter/u.mV)`** — `MEGLeadFieldModel`'s hardcoded `scale=nA·m/tesla` is dimensionally wrong for an mV source and yields mV not T (the standing goal-13e MEG-scale note, confirmed again).
938
938
-**make html:** baseline (detached `git worktree add --detach /tmp/bm_base_13i origin/main`, `make clean` first) and worktree both **build succeeded, 108 warnings / 93 unique normalized** (strip worktree path + `:LINE:`), **byte-identical: 0 new, 0 removed** — same pre-existing autosummary-duplicate + source-docstring set as goals 13a–13h. `nb_execution_mode="off"` renders committed outputs; all 5 case studies appear in `_build/html/gallery/case_studies/*.html` with their real results (e.g. "fitted C", "final test accuracy" grep-confirmed in the HTML). Only the 5 `docs/gallery/case_studies/*.ipynb` are tracked changes; `dev/` + `_build/` + `*/generated` stay gitignored.
939
+
940
+
### 2026-06-19 · goal-13j reference-polish
941
+
-**Headline — the API reference is now COMPLETE: every one of the 84 `brainmass.__all__`
942
+
symbols is documented on exactly ONE reference page** (audit script over `__init__.py`
943
+
`__all__` × the autosummary/`.. data::` entries of every `reference/*.rst`: 0 missing, 0
944
+
duplicated; only `__version__`/`__version_info__` are intentionally un-autosummary'd version
0 commit comments