From 20a92a01e69f3a10a9a1490a5b8000431ecb9f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Trevi=C3=B1o?= Date: Sun, 6 Dec 2026 01:46:53 -0600 Subject: [PATCH] The association reads the CSS off the algorithm sheets' score --- models/tea/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/tea/jobs.py b/models/tea/jobs.py index ecf6865..96d2f22 100644 --- a/models/tea/jobs.py +++ b/models/tea/jobs.py @@ -163,7 +163,8 @@ def association_cohort(as_of: date | None = None) -> tuple[pd.DataFrame, pd.Data css = None if evaluated and r["birth_date"]: row = {**a, "evaluation_date": date.fromisoformat(evaluated)} - css, _ = ados2.score(row, date.fromisoformat(r["birth_date"])) + scored = ados2.score(row, date.fromisoformat(r["birth_date"])) + css = scored and scored.css rows.append({"key": r["edf"], "person": r["person_id"], "age_months": r["age_months"], "module": a.get("module"), "css": css, **{n: a.get(n) for n, _ in relation.ITEMS.values()},