Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Supporting multiple interventions

Aperta
#175 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
r
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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."

Lingua principale
R
Stelle
8
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di petal-code/helios

Tutte le issue di petal-code/helios

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.