Publicar Weibull y puntos del modelo en las curvas por combinación

This commit is contained in:
2026-12-03 07:28:47 -06:00
parent a1e2e07e0c
commit aca4c9d58a
2 changed files with 25 additions and 13 deletions
+4
View File
@@ -130,6 +130,10 @@ def test_survival_matches_the_current_model_and_publishes_patient_scenarios(monk
for c in combined:
assert set(c["valores"]) == set(spec.features)
assert ("km" in c) == (c["fallecidos"] >= survival.MIN_SCENARIO_EVENTS)
if "km" in c:
assert {"weibull", "weibull_fractional", "points"} <= set(c)
point = c["points"]["COMB"]
assert len(point["S"]) == len(c["horizons_months"]) == len(spec.borders) - 1
(scenario,) = report["escenarios"]
name = scenario["escenario"]
assert name == "Citología · HSIL+"