Skip to content

Commit

Permalink
export validation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Oct 31, 2024
1 parent bea22ec commit 87a0d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export(normalizeResultMatrixByTotalImpacts)
export(plotMatrixCoefficient)
export(printValidationResults)
export(seeAvailableModels)
export(testCalculationFunctions)
export(testVisualizationFunctions)
export(writeModelMatrices)
export(writeModelforAPI)
export(writeModeltoXLSX)
Expand Down
2 changes: 2 additions & 0 deletions R/ValidateModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ validateHouseholdEmissions <- function(model) {
#' calculateMarginSectorImpacts
#'
#' @param model, A fully built EEIO model object
#' @export
testCalculationFunctions <- function(model) {
target_year <- ifelse(model$specs$IOYear != 2019, 2019, 2020)
sector <- model$Commodities$Code_Loc[[10]]
Expand Down Expand Up @@ -560,6 +561,7 @@ testCalculationFunctions <- function(model) {
#' heatmapSatelliteTableCoverage, heatmapSectorRanking, plotMatrixCoefficient
#'
#' @param model, A fully built EEIO model object
#' @export
testVisualizationFunctions <- function(model) {
model_list <- list("model" = model)
loc <- model$specs$ModelRegionAcronyms[[1]]
Expand Down

0 comments on commit 87a0d0b

Please sign in to comment.