Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoch94 committed Feb 21, 2025
1 parent a29b28b commit 7ce65b0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion R/calcFeDemandIndustry.R
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ calcFeDemandIndustry <- function(scenarios, use_ODYM_RECC = FALSE, last_empirica
calcOutput(
type = "Steel_Projections",
subtype = "production",
scenario = gdpPopScen,
scenarios = gdpPopScen,
match.steel.historic.values = TRUE,
match.steel.estimates = "IEA_ETP",
China_Production = readSource(type = "ExpertGuess",
Expand Down
2 changes: 1 addition & 1 deletion R/calcIndustry_EEK.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ calcIndustry_EEK <- function(kap, scenarios) {
industry_VA <- calcOutput(
type = 'Industry_Value_Added',
subtype = 'economic',
scenario = unique(c(scenarios, "SSP2")),
scenarios = unique(c(mrdrivers::toolReplaceShortcuts(scenarios), "SSP2")),
match.steel.historic.values = TRUE,
match.steel.estimates = 'IEA_ETP',
China_Production = readSource(type = 'ExpertGuess',
Expand Down
2 changes: 1 addition & 1 deletion R/calcIndustry_Value_Added.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ calcIndustry_Value_Added <- function(subtype = 'physical',
'GDPpC', 'steel.VApt'),

calcOutput(type = 'Steel_Projections',
scenario = scenarios,
scenarios = scenarios,
match.steel.historic.values = match.steel.historic.values,
match.steel.estimates = match.steel.estimates,
China_Production = China_Production,
Expand Down
1 change: 1 addition & 0 deletions R/calcSteel_Projections.R
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ calcSteel_Projections <- function(subtype = 'production',
as.magpie(spatial = 2, temporal = 3, data = 4),
weight = calcOutput(
type = 'Steel_Projections',
scenarios = scenarios,
match.steel.historic.values = match.steel.historic.values,
match.steel.estimates = match.steel.estimates,
aggregate = FALSE, years = unique(quitte::remind_timesteps$period),
Expand Down
21 changes: 10 additions & 11 deletions inst/extdata/specific_material_relative.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
scenario, base.scenario, region, subsector, factor
SDP, SSP1, NA, cement, 1
SDP, SSP1, NA, chemicals, 1
Expand Down Expand Up @@ -152,13 +151,13 @@ SSP2_highDemDEU, SSP2, NA, chemicals, 1
SSP2_highDemDEU, SSP2, NA, steel_primary, 1
SSP2_highDemDEU, SSP2, NA, steel_secondary, 1
SSP2_highDemDEU, SSP2, NA, otherInd, 1
SSP2IndiaMedium, SSP2, NA, cement, 1
SSP2IndiaMedium, SSP2, NA, chemicals, 1
SSP2IndiaMedium, SSP2, NA, steel_primary, 1
SSP2IndiaMedium, SSP2, NA, steel_secondary, 1
SSP2IndiaMedium, SSP2, NA, otherInd, 1
SSP2IndiaHigh, SSP2, NA, cement, 1
SSP2IndiaHigh, SSP2, NA, chemicals, 1
SSP2IndiaHigh, SSP2, NA, steel_primary, 1
SSP2IndiaHigh, SSP2, NA, steel_secondary, 1
SSP2IndiaHigh, SSP2, NA, otherInd, 1
SSP2IndiaMedium, SSP2, NA, cement, 1
SSP2IndiaMedium, SSP2, NA, chemicals, 1
SSP2IndiaMedium, SSP2, NA, steel_primary, 1
SSP2IndiaMedium, SSP2, NA, steel_secondary, 1
SSP2IndiaMedium, SSP2, NA, otherInd, 1
SSP2IndiaHigh, SSP2, NA, cement, 1
SSP2IndiaHigh, SSP2, NA, chemicals, 1
SSP2IndiaHigh, SSP2, NA, steel_primary, 1
SSP2IndiaHigh, SSP2, NA, steel_secondary, 1
SSP2IndiaHigh, SSP2, NA, otherInd, 1

0 comments on commit 7ce65b0

Please sign in to comment.