UK: blank FRS tenure silently becomes RENT_PRIVATELY

Abierto
#1,716 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start at uk_runtime/frs_spine.py lines 1868-1869, where _map_dictionary_codes maps blank ptentyp2 to RENT_PRIVATELY, and read TENURE_MAP. Compare with how spi_housing_shell imputes tenure for SPI households. Done means blank-tenure rows are counted in the build receipt and either imputed or explicitly flagged rather than defaulted to private renting.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

uk_runtime/frs_spine.py:1868-1869 maps a blank FRS tenure code (ptentyp2) to RENT_PRIVATELY:

pe_household["tenure_type"] = _map_dictionary_codes(
    household, "ptentyp2", TENURE_MAP, blank="RENT_PRIVATELY"
)

Private renting is also policyengine-uk's enum default, so a user can't tell a household with a reported tenure from one that defaulted. An external user asked whether records "take the default (renting privately)".

Asks:

  • Count these rows in a build receipt.
  • If there are more than a handful, impute tenure for them as spi_housing_shell does for SPI households, rather than defaulting to private renting, which affects LHA, Housing Benefit and housing costs.

Drafted with AI assistance and checked against main at 8740c6f.

Lenguaje dominante
Python
Estrellas
0
Forks
6
Merge medio
1 d 17 h
PR fusionados (30 d)
190

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/microcosm

Todos los issues de PolicyEngine/microcosm

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.