Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Supporting multiple interventions

Abierto
#175 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
r
Área
backend

Línea de trabajo

Start with set_intervention_ach(), generate_setting_intervention_switches(), and calculate_efficacy_from_ach(); the issue says these currently store and read a single intervention. Review the ACH framework introduced in #142 and compare the indexing approach in malariasimulation’s R/mda_parameters.R. Done means a simulation can use multiple interventions per setting, with indexing, coverage behavior, joint coverage, and parameter naming resolved.

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

Descripción

Work in progress on branch `multiple-interventions'.

The ACH intervention framework (added in #142) currently supports one intervention per setting (workplace, school, leisure, household, or joint). Generalising it to several interventions in a single simulation raises the points below, collected from review of #142.

Points to address
  • Single intervention stored as a length-1 list. set_intervention_ach() wraps the intervention in list(), and downstream code reads interventions[[1]] (e.g. $coverage in generate_setting_intervention_switches(), and in calculate_efficacy_from_ach()). Calling set_intervention_ach() twice for the same setting overwrites the first intervention rather than adding to it.
  • Indexing interventions. Interventions need a way to be identified and looked up. Options: key them by the name from make_intervention(), or use a user-assigned index, as in malariasimulation: https://github.com/mrc-ide/malariasimulation/blob/master/R/mda_parameters.R
  • Coverage across interventions. Decide whether coverage of multiple interventions is clumped (same locations covered) or independent.
  • Joint coverage. intervention_joint_coverage is taken from a single intervention; check it behaves correctly once there is more than one.
  • Parameter naming. The intervention_<setting>_<param> convention may not scale to several interventions. One option is aqi_intervention_<setting>_<param>; this needs revisiting as part of this work.

From Tom: "In malariasimulation, where multiple interventions of a similar type are used the user assigns them an index which then helps the internal code work through this kind of issue (see https://github.com/mrc-ide/malariasimulation/blob/master/R/mda_parameters.R if interested). Here we have the intervention name from make_intervention which feels like it should be a useful way to resolve the multiple intervention issue."

Lenguaje dominante
R
Estrellas
8
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 petal-code/helios

Todos los issues de petal-code/helios

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.