Calculate a household under several policies in one call on Modal (v2 household functions)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
Start by reading the open pull request #903, which is already working on this issue. The issue describes the v2 household functions, version manifest, release validation, and image checks, but does not name specific files or tests. Done means both country functions, manifest and validation changes, and the pre-merge image check meet the listed behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
Add Modal functions that calculate one household under several policies in one call, for the US and the UK, in the versioned v2 Modal application:
- A versioned household contract: a household in the Public API's situation shape, with optional axes; one to ten policies per request, so a baseline and its reform are calculated together; a schema version; the PolicyEngine.py bundle the caller expects; an optional SPM selection; and an option to add every missing variable, as the Public API's
/calculate-fullroute does. The result carries each policy's calculated household, warnings and SPM receipt, the applied SPM selection and the bundle provenance, or a typed failure. calculate_household_usandcalculate_household_uk, which reproduce the Public API's household calculation (input preparation, unrecognized-input errors and their order, deprecated-input warnings, value formatting, SPM handling) and run in their own image with no datasets and no secrets, sized for large households with axes.- Schema version 2 of the v2 version manifest, which records for each country whether it can run economy reports and which function calculates its households. The comparison adapter gives the report coordinator only countries marked economy-capable.
- Release validation that calls each household function with a small household before the manifest names it.
- The pre-merge image check builds every v2 image (report coordinator, country workers, household functions) and imports their entry points.
Why
Household calculations run inside the Public API's web process today. Moving them to Modal lets the Simulation Entrypoint calculate and store households the same way it handles economy reports, and computes a baseline and its reform in a single call. Nothing calls these functions yet: they are deployed but unused until the Simulation Entrypoint gains household routes.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 61
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PolicyEngine/policyengine-sim-api
-
Update policyengine to 6.7.3Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Los mantenedores suelen responder en 1 día
-
Integration tests fail due to missing UV virtual environment setupPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Los mantenedores suelen responder en 1 día
-
Update policyengine to 6.10.1Posiblemente ocupada @policyengine la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
PolicyEngine/policyengine-sim-api#905 ·
Los mantenedores suelen responder en 1 día
-
Add simulation and report definitions to the simulation schemaPosiblemente ocupada @anth-volk la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
PolicyEngine/policyengine-sim-api#899 ·
Los mantenedores suelen responder en 1 día
-
Give the Simulation Entrypoint its own simulation schema, migration chain and database connectionPosiblemente ocupada @anth-volk la tomó hace 1 día. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
PolicyEngine/policyengine-sim-api#897 ·
Los mantenedores suelen responder en 1 día
Todos los issues de PolicyEngine/policyengine-sim-api
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
foxglove/mcap#1907 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
namespace operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
EclipseFdn/open-vsx.org#14623 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
developmentseed/titiler-cmr#261 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
andrewyng/openworker#774 ·
Los mantenedores suelen responder en 1 día
-
aggfuncAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
worldbank/blackmarblepy#160 ·