Governance: each version stores the drawing of its dataflow as files of its own

Training stores the scenario's Hamilton graph as `diagramas/pipeline.dot` and, when Graphviz's `dot` is installed,
`diagramas/pipeline.svg`, listed next to the version's other files. Without the `graphviz` package there is no
drawing and training goes on.
This commit is contained in:
2026-11-22 07:38:07 -06:00
parent e8c264e571
commit d090bb0f9f
4 changed files with 55 additions and 2 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ def test_training_registers_a_version_and_estimating_dates_each_risk_by_the_mode
assert wrote and resolved.version == version
files = [f["path"] for f in registry.artifacts("cacu", "survival", version)]
assert {"analisis/curvas.json", "analisis/subgrupos.json", "reportes/subgrupos.html"} <= set(files)
assert {"analisis/curvas.json", "analisis/subgrupos.json", "reportes/subgrupos.html", "diagramas/pipeline.dot",
"diagramas/pipeline.svg"} <= set(files)
risks = pq.read_table(output).to_pandas()
assert set(risks["horizonte_anios"]) == {1.0, 3.0, 5.0} and set(risks["pac_id"]) == set(range(1, N + 1))
frame = read_cohort(cohort_file)