Skip to content

Commit

Permalink
fix in 1x1 GQs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanase committed Dec 22, 2023
1 parent ddace4c commit 6711085
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
10.0-1.900x (09/22/2023)
10.0-1.900x (12/22/2023)
------
pop.predict.subnat can handle 1x1 subnational projections.

Fix in 1x1 GQs.

10.0-0/1 (08/09/2023)
------
Making default datasets from wpp2022 work with pop.predict.
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: bayesPop
Type: Package
Title: Probabilistic Population Projection
Version: 10.0-1.9006
Date: 2023-11-03
Version: 10.0-1.9007
Date: 2023-12-22
Author: Hana Sevcikova, Adrian Raftery, Thomas Buettner
Maintainer: Hana Sevcikova <[email protected]>
Depends: R (>= 3.5.0), bayesTFR (>= 7.1-0), bayesLife (>= 5.0-0), MortCast (>= 2.6-1)
Expand Down
2 changes: 1 addition & 1 deletion R/predict.pop.R
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ get.country.inputs <- function(country, inputs, nr.traj, country.name) {
for(par in c("GQm", "GQf")) {
if(is.null(inpc[[par]])) next
# match ages
age.labels <- get.age.labels(ages.all(inputs$annual, observed = TRUE))
age.labels <- get.age.labels(ages.all(inputs$annual, observed = TRUE), single.year = inputs$annual)
if(!all(rownames(inpc[[par]]) %in% age.labels))
stop("Mismatch in age labels for ", par, "\nAllowed labels: ", paste(age.labels, collapse = ", "))
gq <- rep(0, length(age.labels))
Expand Down

0 comments on commit 6711085

Please sign in to comment.