TEA gate: the 62-EEG analysis may take up to an hour on a 2-CPU test container

This commit is contained in:
2026-11-28 16:31:45 -06:00
parent 3438a3135b
commit 09691afc76
+1 -1
View File
@@ -188,7 +188,7 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path):
assert (css, label) == (theirs["ado_css"], CLASSIFICATION[theirs["ado_clasificacion"]]) assert (css, label) == (theirs["ado_css"], CLASSIFICATION[theirs["ado_clasificacion"]])
# The EEG analysis: every signal's verdict, level and metrics are the current platform's. # The EEG analysis: every signal's verdict, level and metrics are the current platform's.
wait_for(api, ok(api.post("/models/tea/analyze"))["run_id"], 1800) wait_for(api, ok(api.post("/models/tea/analyze"))["run_id"], 3600) # 62 EEGs, 2 CPUs: ~45 min
with sqlite3.connect(db) as con: with sqlite3.connect(db) as con:
signals = con.execute("select eeg_id, eeg_estudio from eeg where eeg_estudio is not null") signals = con.execute("select eeg_id, eeg_estudio from eeg where eeg_estudio is not null")
hashes = {i: hashlib.sha256(b).hexdigest() for i, b in signals} hashes = {i: hashlib.sha256(b).hexdigest() for i, b in signals}