Skip to content

Commit

Permalink
fix bug in convertBP
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Sep 14, 2023
1 parent 9829bca commit 359a1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/convertBP.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ convertBP <- function(x, subtype) {
x2[, c(2019, 2020), ] <- trade.ref.import.oil
# for 1980 - 2018 we split some regions into more fine granular regions by 2020 data
x2[unchanged_regions, seq(1980, 2018, 1), ] <- trade.import.oil[unchanged_regions, seq(1980, 2018, 1), ]
x2[to_regions, seq(1980, 2018, 1), ] <- trade.ref.import.split[, seq(1980, 2018, 1), , ]
x2[to_regions, seq(1980, 2018, 1), ] <- trade.ref.import.split[, seq(1980, 2018, 1), ]

x.trade <- new.magpie(getItems(x1, dim = 1), getYears(x1), c("Trade|Import|Oil (kb/d)", "Trade|Export|Oil (kb/d)"))
x.trade[, , "Trade|Export|Oil (kb/d)"] <- x1
Expand Down

0 comments on commit 359a1d3

Please sign in to comment.