Skip to content

Commit

Permalink
updating subregion industry breakout
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarrar Khan committed Jan 9, 2022
1 parent 99b9df4 commit f84274e
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
11 changes: 11 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
# Replace gcamdatasystem module templates
#---------------------------------------

#' Template for template_zchunk_LA121.liquids_breakout
#'
#' @source created by ZK
#' @format R script
#' @examples
#' \dontrun{
#' library(gcambreakout);
#' gcambreakout::template_zchunk_LA121.liquids_breakout
#' }
"template_zchunk_LA121.liquids_breakout"

#' Template for template_zchunk_L223.electricity_breakout
#'
#' @source created by ZK
Expand Down
Binary file modified data/mapping_modules.rda
Binary file not shown.
Binary file added data/template_zchunk_LA121.liquids_breakout.rda
Binary file not shown.
Binary file modified data/template_zchunk_X232.industry_APPEND.rda
Binary file not shown.
4 changes: 3 additions & 1 deletion inst/extras/zchunk_X232.industry_APPEND.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

module_energy_X232.industry_APPEND <- function(command, ...) {
if(command == driver.DECLARE_INPUTS) {
return(c("X201.Pop_APPEND",
return(c(FILE = "common/GCAM_region_names",
"X201.Pop_APPEND",
"X201.GDP_APPEND",
"L232.Supplysector_ind",
"L232.SubsectorLogit_ind",
Expand Down Expand Up @@ -108,6 +109,7 @@ module_energy_X232.industry_APPEND <- function(command, ...) {
all_data <- list(...)[[1]]

# Load required inputs
GCAM_region_names <- get_data(all_data, "common/GCAM_region_names")
X201.Pop_APPEND <- get_data(all_data, "X201.Pop_APPEND")
X201.GDP_APPEND <- get_data(all_data, "X201.GDP_APPEND")
L232.Supplysector_ind <- get_data(all_data, "L232.Supplysector_ind", strip_attributes = TRUE)
Expand Down
25 changes: 25 additions & 0 deletions man/template_zchunk_LA121.liquids_breakout.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f84274e

Please sign in to comment.