Skip to content

Commit

Permalink
use pacta.data.preparation::determine_relevant_years() (#208)
Browse files Browse the repository at this point in the history
- towards #94 
- depends on
https://github.com/RMI-PACTA/pacta.data.preparation/pull/357

---------

Co-authored-by: CJ Yetman - RMI <[email protected]>
  • Loading branch information
cjyetman and CJ Yetman - RMI authored Apr 5, 2024
1 parent d9f22c6 commit d84dc80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run_pacta_data_preparation.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ index_regions_preflight_data_path <- file.path(config[["preflight_data_path"]],

# computed options -------------------------------------------------------------

relevant_years <- sort(
unique(
config[["market_share_target_reference_year"]]:(config[["market_share_target_reference_year"]] + config[["time_horizon"]])
relevant_years <-
pacta.data.preparation::determine_relevant_years(
config[["market_share_target_reference_year"]],
config[["time_horizon"]]
)
)
logger::log_info("Full time horizon set to: {paste0(relevant_years, collapse = ', ')}.")

scenario_raw_data_to_include <- lapply(config[["scenario_raw_data_to_include"]], get, envir = asNamespace("pacta.scenario.preparation"))
Expand Down

0 comments on commit d84dc80

Please sign in to comment.