Skip to content

Commit

Permalink
Update in accordance with mrdrivers update
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoch94 committed Oct 16, 2024
1 parent 557646b commit 3600957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions R/calcNutrientBudgetSewage.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ calcNutrientBudgetSewage <- function(historic = TRUE) {
drecht <- drecht[, , ssps]
drecht <- collapseNames(time_interpolate(drecht, interpolated_year = findset("time"),
integrate_interpolated_years = FALSE, extrapolation_type = "constant"))
population <- collapseNames(calcOutput("Population", naming = "indicator.scenario",
PopulationFuture = "SSP", aggregate = FALSE)[, , ssps])
population <- calcOutput("Population", scenario = "SSPs", naming = "scenario", aggregate = FALSE)
}

detergent <- population * drecht[, , "det_p_pp"]
Expand Down
3 changes: 1 addition & 2 deletions R/convertGTAPv8v9.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ convertGTAPv8v9 <- function(x, subtype) {
}

} else {
gdpMer <- calcOutput("GDPPast", GDPPast = "WDI-MI",
unit = "constant 2017 US$MER", aggregate = FALSE)
gdpMer <- calcOutput("GDPPast", unit = "constant 2017 US$MER", aggregate = FALSE)
gdpMer <- gdpMer[, getYears(x), , drop = TRUE]
w1 <- GDPuc::toolConvertGDP(gdpMer,
unit_in = "constant 2017 US$MER",
Expand Down

0 comments on commit 3600957

Please sign in to comment.