TEA gate compares the indicators after the curves score: M30 counts the alterations they find
This commit is contained in:
+4
-3
@@ -207,9 +207,6 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path):
|
|||||||
value = theirs["met_valor"]
|
value = theirs["met_valor"]
|
||||||
assert ours.get(key) == (None if value is None else pytest.approx(value, rel=1e-12)), key
|
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;
|
# 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
|
# promoted after their clinical validation, they score every analysed EEG as the
|
||||||
# current platform's curves do.
|
# 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)
|
assert scored[key] == [None if v is None else pytest.approx(v, rel=1e-9)
|
||||||
for v in expected], key # fmt: skip
|
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.
|
# The EEG pages: every study with its verdict, and a valid one's metrics with their scores.
|
||||||
listed = ok(api.get("/tea/eegs"))
|
listed = ok(api.get("/tea/eegs"))
|
||||||
summary = json.loads((REFERENCE / "pages.json").read_text())["/governance/tea/eeg/summary"]
|
summary = json.loads((REFERENCE / "pages.json").read_text())["/governance/tea/eeg/summary"]
|
||||||
|
|||||||
Reference in New Issue
Block a user