Skip to content

Commit

Permalink
Merge branch 'linkstateiorImportF' into 2r_disagg
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Feb 29, 2024
2 parents 62147b6 + 9d8f094 commit 825546f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/CalculationFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ calculateResultsWithExternalFactors <- function(model, perspective = "FINAL", de
hh = t(as.matrix(model$B_h[, codes])) * colSums(as.matrix(model$U[, codes]))
hh_lcia = t(model$C %*% as.matrix(model$B_h[, codes])) * colSums(as.matrix(model$U[, codes]))
rownames(hh) <- codes
rownames(hh_lcia) <- codes

# Calculate Final perspective results
if(perspective == "FINAL"){
Expand Down
4 changes: 2 additions & 2 deletions R/VisualizationFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ getBEASectorColorMapping <- function(model) {
ColorLabelMapping$color <- rownames(ColorLabelMapping)
# Add Households, Used and Other
# ColorLabelMapping["#FFE119", ] <- c("Households", "F010", "#FFE119") # yellow
# ColorLabelMapping["#42D4F4", ] <- c("Used", "Used", "#42D4F4") # cyan (bright blue)
# ColorLabelMapping["#469990", ] <- c("Other", "Other", "#469990") # teal
ColorLabelMapping["#42D4F4", ] <- c("Used", "Used", "#42D4F4") # cyan (bright blue)
ColorLabelMapping["#469990", ] <- c("Other", "Other", "#469990") # teal
# Prepare BEA Sector-modelIOLevel mapping
mapping <- unique(model$crosswalk[, c("BEA_Sector", "USEEIO")])
colnames(mapping) <- c("Sector", paste0(model$specs$BaseIOLevel, "Code"))
Expand Down

0 comments on commit 825546f

Please sign in to comment.