TEA gate compares the indicators after the curves score: M30 counts the alterations they find

This commit is contained in:
2026-11-28 06:38:32 -06:00
parent de4485094f
commit 8fa2be8aab
+4 -3
View File
@@ -207,9 +207,6 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path):
value = theirs["met_valor"]
assert ours.get(key) == (None if value is None else pytest.approx(value, rel=1e-12)), key
# Indicators, from the platform's own EEG verdicts.
indicators(api)
# The age curves: one training run gives a version of each, from the reference cohort;
# promoted after their clinical validation, they score every analysed EEG as the
# current platform's curves do.
@@ -230,6 +227,10 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path):
assert scored[key] == [None if v is None else pytest.approx(v, rel=1e-9)
for v in expected], key # fmt: skip
# Indicators, from the platform's own EEG verdicts and, for M30, the alterations the
# promoted curves found (as the current platform's were captured: curves trained).
indicators(api)
# The EEG pages: every study with its verdict, and a valid one's metrics with their scores.
listed = ok(api.get("/tea/eegs"))
summary = json.loads((REFERENCE / "pages.json").read_text())["/governance/tea/eeg/summary"]