Skip to content

Commit

Permalink
Merge pull request #39 from mrc-ide/artpop-netmig-tARTstart
Browse files Browse the repository at this point in the history
patch: net-migration in artpop in first ART year
  • Loading branch information
jeffeaton authored Nov 19, 2023
2 parents 7fe1534 + dce93be commit 4fd7a52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: eppasm
Title: Age-structured EPP Model for HIV Epidemic Estimates
Version: 0.7.2
Version: 0.7.3
Authors@R: person("Jeff", "Eaton", email = "[email protected]", role = c("aut", "cre"))
Description: What the package does (one paragraph).
Depends: R (>= 3.1.0),
Expand Down Expand Up @@ -29,4 +29,4 @@ Suggests:
VignetteBuilder: knitr
URL: https://github.com/mrc-ide/eppasm
BugReports: https://github.com/mrc-ide/eppasm/issues
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## eppasm 0.7.3

* Bug fix: account for end-year net migration in the ART population in the first year of ART start.

## eppasm 0.7.2

* Add function `read_pop1()` to parse Spectrum `_pop1.xlsx` export file.
Expand Down
2 changes: 1 addition & 1 deletion src/eppasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ extern "C" {
double migrate_ha = hivpop_ha > 0 ? mig_ha / hivpop_ha : 0.0;
for(int hm = 0; hm < hDS; hm++){
hivpop[t][g][ha][hm] *= 1+migrate_ha;
if(t > t_ART_start)
if(t >= t_ART_start)
for(int hu = 0; hu < hTS; hu++)
artpop[t][g][ha][hm][hu] *= 1+migrate_ha;
} // loop over hm
Expand Down

0 comments on commit 4fd7a52

Please sign in to comment.