Skip to content

Commit

Permalink
update additional nomenclature in visualization function testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Dec 5, 2024
1 parent 1356e55 commit 50c9bf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/ValidateModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ testVisualizationFunctions <- function(model) {
location = loc)
domcons <- calculateEEIOModel(model, perspective='DIRECT', demand="Consumption",
location = loc, use_domestic_requirements = TRUE)
barplotFloworImpactFractionbyRegion(domcons$LCIA_d,
fullcons$LCIA_d,
barplotFloworImpactFractionbyRegion(domcons$H_r,
fullcons$H_r,
"Domestic Proportion of Impact")
## ^^ This may not be working correctly for 2R models

Expand All @@ -575,7 +575,7 @@ testVisualizationFunctions <- function(model) {

if(model$specs$IODataSource != "stateior") {
# not working for 2R models
heatmapSectorRanking(model, matrix = fullcons$LCIA_d, indicators,
heatmapSectorRanking(model, matrix = fullcons$H_r, indicators,
sector_to_remove = "", N_sector = 20)
}

Expand Down

0 comments on commit 50c9bf2

Please sign in to comment.