Skip to content

Commit

Permalink
bugfix calculations with incineration rate of plastics as some years …
Browse files Browse the repository at this point in the history
…had NAs
  • Loading branch information
Felix Schreyer authored and Felix Schreyer committed Jan 13, 2025
1 parent b08c197 commit e03cb14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/reportEmi.R
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ reportEmi <- function(gdx, output = NULL, regionSubsetList = NULL,
spatial = 2,
react = "silent")[,t,]

# replace NA by 0
pm_incinerationRate[is.na(pm_incinerationRate)] <- 0

if (is.null(vm_nonIncineratedPlastics)) {
vm_nonIncineratedPlastics <- (1-pm_incinerationRate) * v37_plasticWaste
}
Expand Down

0 comments on commit e03cb14

Please sign in to comment.