ea6db36b23
The WebApi cycle's build (models.cohorts.build.build_of) runs the cohort's queries from dbt's manifest with the same chain as the export, instead of a Python frame per cohort; the TOML definitions, their frames and definition.py are removed. A cohort may have no exclusions (cacu/cohorte_total, for models whose rules don't fit SQL) and an optional `variables` query; the population meta carries the cohort's version. cohort_urls lists a domain's cohorts in the manifest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
7 lines
446 B
Python
7 lines
446 B
Python
"""Cohorts for the risk models. dbt is their only definition (`Transformation/models/<project>/cohorts/`: population,
|
|
index date and exclusions as queries in the manifest); this package stores a build of them for the WebApi cycle.
|
|
|
|
build.py from dbt's queries to `cohorte_armado` and its rows; the stored frame, wide
|
|
cama/ CaMa's screening cohort, a PROPOSAL in the old Python-frame format, not built
|
|
"""
|