Commit Graph

4 Commits

Author SHA1 Message Date
alberto 7088e0e946 ADOS-2 preview carries each item's code and title from the Core list
The preview result names the module's items by the titles in
core.tea.ados2_items, module items first, so the Gobernanza dialog and its
PDF print what the report asks instead of field names.
2026-11-30 19:17:46 -06:00
alberto c59afacad9 ADOS-2 preview reads every catalog item; totals come from the module's list
core.tea no longer has module-independent SA/RRB lists: the preview parses
all ADOS2_ITEMS and the scoring takes each module's own items from
core.tea.ados2_items.
2026-11-30 16:56:26 -06:00
alberto d8445fcabf Cleanup of the TEA parity work: no prose in code, no hacks, everything in its place
1. No prose in code
- Remove parity-added comments and docstrings from TEA jobs, analysis and
  scoring helpers, execution, definitions, and tests. Keep base prose and
  Ruff and type-checker directives.

2. No hacks, no glued code
- Delegate both association cohort queries to persistance.eeg. Keep the
  predictor mapping and DataFrame shaping in the job, sharing biomarker
  codes and EEG study IDs with Core. Preserve column names and order, row
  selection, score filtering, and earliest fitting study.
- Use the existing MODELS registry for curve scoring in place of CURVES.
  Keep GOLD because the generic score job reads it.
- Catch lookup, database, and validation failures when loading a preview
  pipeline, preserving the existing warning. Keep execution-boundary
  exception handling for submitted tasks, telemetry and shutdown.
- Name the association test for the missing-champion case. Preserve its
  assertion and the other test assertions.

3. Everything in its place
- Keep SQL in Persistance, cohort shaping in models, and tests in their
  existing testpaths. Keep the association fits together with their
  shared design and result machinery.
2026-11-30 13:41:49 -06:00
alberto 3950b3c1f5 tea_preview job: one file previewed, result as run output: preview analyses one staged EDF (and an ADOS-2 PDF) against the champions, writes nothing 2026-11-28 13:37:27 -06:00