mrc-ide / vivax

Individual-based model for P. vivax malaria transmission
MIT License
2 stars 1 forks source link

Fix bug to allow IRS_cover to be between 0 and 1 #26

Closed andradjaafara closed 1 year ago

andradjaafara commented 1 year ago

When running run_simulation, we can't set IRS_cover to be between 0 and 1.

The error seem to come from line 68 of https://github.com/mrc-ide/vivax/blob/master/R/interventions.R

Which can be easily fix by changing 'params$IRS_cover >= 1' to 'params$IRS_cover <= 1'