Skip to content

Commit

Permalink
add Alias to model specs
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Dec 19, 2024
1 parent 5d64cea commit 089207a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/StateiorFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @return A list of two-region IO data of model iolevel and year.
getTwoRegionIOData <- function(model, dataname) {
# Define state, year and iolevel
alias <- ifelse(!is.na(model$specs$alias), model$specs$alias, NULL)
alias <- ifelse(!is.na(model$specs$Alias), model$specs$Alias, NULL)
if(!"US-DC" %in% model$specs$ModelRegionAcronyms) {
state <- state.name[state.abb == gsub(".*-", "", model$specs$ModelRegionAcronyms[1])]
} else {
Expand Down
1 change: 1 addition & 0 deletions format_specs/ModelSpecification.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Model specifications are assigned in a yml file based on the parameters shown be
| BaseIOSchema | int | Y | The base IO schema (e.g. 2012) |
| BaseIOLevel | str | Y | The base IO level of detail (e.g. `Detail`) |
| IOYear | int | Y | The base IO year |
| Alias | str | N | The alias provided to the model, typically also included in the model name. Required for two region models from stateior. |
| ModelRegionAcronyms | list | Y | The model region acronyms |
| ModelType | str | Y | The [model type](#Model-Types) (e.g. `EEIO`) |
| IODataSource | str | Y | The model source (e.g. `BEA` or `stateior`) |
Expand Down

0 comments on commit 089207a

Please sign in to comment.