Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use piamPlotComparison for comparing scenarios #19

Merged
merged 7 commits into from
Jul 30, 2024

Conversation

fbenke-pik
Copy link
Contributor

@fbenke-pik fbenke-pik commented Jul 29, 2024

This PR moves the generic logic to create a compareScenarios pdf to the library piamPlotComparison.

  • most of the logic in R/transportCompareScenarios.R is now executed directly in piamPlotComparison::compareScenarios

The following files are no longer needed:

  • inst/compareScenarios/csEDGET_main.Rmd (moved to piamPlotComparison, EDGE-T specific code was moved to inst/compareScenarios/preprocessing.R)
  • inst/compareScenarios/cs2_latex_template.tex and inst/compareScenarios/cs_pdf_header_include.tex (moved to piamPlotComparison)
  • inst/compareScenarios/cs2_plot_functions.R (some functions were deleted as they were no longer used, others were moved to the notebook where they are used or to the inst/compareScenarios/preprocessing.R )

The section markdowns used to generate the current pdf are EDGE-T specific and remain in this repo. To work with the new framework, they were renamed to cs_NN_TEXT.Rmd (e.g. inst/compareScenarios/csEDGET_01_energy_demand.Rmd -> inst/compareScenarios/cs_01_energy_demand.Rmd).

Rmd files not used in the current cs2 plotting were left unchanged:

  • csEDGET_EndogenousCostAnalytics.Rmd
  • csEDGET_NAV_scenario_evaluation.Rmd
  • csEDGET_01_energy_demand_UE.Rmd

These must be renamed according to the naming scheme in order to include them.

For documentation on piamPlotComparison, please see: https://pik-piam.r-universe.dev/articles/piamPlotComparison/compareScenarios.html

@fbenke-pik fbenke-pik marked this pull request as ready for review July 29, 2024 14:43
@fbenke-pik fbenke-pik merged commit 2ea3fb2 into pik-piam:master Jul 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants