The kit's silver load, reference tables, table maps and follow-up list move into the WebApi; the kit is no longer a dependency
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""Lo que el ciclo necesita saber de las definiciones de un proyecto: sus periodos (dbt) y sus cohortes (el kit)."""
|
||||
"""What the cycle needs to know of a project's definitions: its period types (dbt) and its cohorts (`models.cohorts`)."""
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from indicadores_kit.oro.cohortes.definicion import RAIZ
|
||||
from models.cohorts.definition import ROOT
|
||||
|
||||
|
||||
def period_types(proyecto: str, manifest: Path) -> list[str]:
|
||||
@@ -14,5 +14,6 @@ def period_types(proyecto: str, manifest: Path) -> list[str]:
|
||||
|
||||
|
||||
def cohort_definitions(proyecto: str) -> list[Path]:
|
||||
"""Los TOML de cohortes que el ciclo arma (`<proyecto>/cohortes/*.toml`): hoy solo CaCu (vigilancia). Las de `cohortes/propuestas/` no (T-21h)."""
|
||||
return sorted((RAIZ / proyecto / "cohortes").glob("*.toml"))
|
||||
"""The cohort TOMLs the cycle builds (`models/cohorts/<project>/*.toml`): today only CaCu's surveillance cohort.
|
||||
Those in `<project>/proposals/` aren't built."""
|
||||
return sorted((ROOT / proyecto).glob("*.toml"))
|
||||
|
||||
Reference in New Issue
Block a user