RMI-PACTA / pacta.scenario.data.preparation

The goal of {pacta.scenario.data.preparation} is to prepare and format all scenario input datasets required to run the {pacta.portfolio.allocate} tool.
https://rmi-pacta.github.io/pacta.scenario.data.preparation/
Other
1 stars 0 forks source link

add `prepare_weo_2023_scenario()` #27

Closed cjyetman closed 6 months ago

cjyetman commented 6 months ago

The weo_2023 object prepared here has some differences with the pacta.scenario.preparation::weo_2023 object, but I have confirmed with @Antoine-Lalechere that they are probably desirable:

the following code finds no differences

waldo::compare(
  dplyr::arrange(pacta.scenario.preparation::weo_2023, scenario, scenario_geography, sector, technology),
  dplyr::mutate(
    dplyr::arrange(weo_2023, scenario, scenario_geography, sector, technology),
    technology = dplyr::if_else(sector == "Aviation", NA, technology)
  )
)
cjyetman commented 6 months ago

~I'm going to force merge because the only changes since your reviews was sorting out the merge conflicts with sys data.rda and adding tests for the bridges.~

don't have privileges for that, sorry @jdhoffa and @Antoine-Lalechere, I need to re-request your reviews

jdhoffa commented 6 months ago

Now you can