Skip to content

Commit

Permalink
Merge pull request #342 from mrc-ide/hotfix/pmc
Browse files Browse the repository at this point in the history
Hotfix/pmc
  • Loading branch information
giovannic authored Dec 27, 2024
2 parents 9b45441 + 64e4e08 commit 0aa9c75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: malariasimulation
Title: An individual based model for malaria
Version: 2.0.0
Version: 2.0.1
Authors@R: c(
person(
given = "Giovanni",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# malariasimulation 2.0.1

* Fix PMC bug where timesteps to generate targetted individuals were not increasing

# malariasimulation 2.0.0

Release v2.0.0. This will mark our shift to [semver 2.0.0](https://semver.org/spec/v2.0.0.html) for versioning, i.e:
Expand Down
2 changes: 1 addition & 1 deletion R/pmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ create_pmc_process <- function(
return()
}
in_age <- variables$birth$get_index_of(
timesteps[time_index] - parameters$pmc_ages
timestep - parameters$pmc_ages
)$to_vector()
target <- in_age[sample_intervention(in_age, 'pmc', coverage, correlations)]

Expand Down

0 comments on commit 0aa9c75

Please sign in to comment.