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

fix aviation unit in GECO 2022: "gCO2/pkm" -> "tCO2/pkm" #31

Closed cjyetman closed 5 months ago

cjyetman commented 5 months ago

now this works as expected (with proper input/output paths and config properly set)...

source("../workflow.scenario.preparation/process_scenario_geco_2022.R")

pacta.data.validation::validate_intermediate_scenario_output(geco_2022)

waldo::compare(
  dplyr::mutate(
    dplyr::arrange(pacta.scenario.preparation::geco_2022, scenario, scenario_geography, sector, technology),
    units = ifelse(sector == "Aviation", "tCO2/pkm", units)
  ),
  dplyr::arrange(geco_2022, scenario, scenario_geography, sector, technology),
  tolerance = 1e-15
)
jdhoffa commented 5 months ago

ah wait tests are failing

cjyetman commented 5 months ago

had to update test snapshot

note to self: banish snapshot tests