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

Add FE and UE reporting for space heating #5

Merged
merged 1 commit into from
May 28, 2024

Conversation

robinhasse
Copy link
Collaborator

This is a rough first implementation. I'm still quite unsure what variables and plots are useful. We'll find out over time...

Copy link
Contributor

@ricardarosemann ricardarosemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this! I have one minor remark/question, everything else looks good!

tot <- paste0(en, "|Residential|Space heating")
vars <- paste(tot, carrier, sep = "|")
showAreaAndBarPlots(data, vars = vars, tot = tot, orderVars = "user", scales = "fixed")
walk(vars, showLinePlots, data = data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused how the script (and the reader) knows that this is the purrr function walk (I guess)? Maybe because purrr just happens to be loaded by some other package? For PR #4 I had to add purrr as an imported package anyway, so you can probably safely write purrr::walk here and elsewhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ricarda for pointing this out. I'm really not sure how to handle dependencies from the scripts properly. I decided to load packages with explicit lists of functions in inst/compareScenarios/preprocessing.R for compareScenarios.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And now purrr::walk is part of it, too ;)

@robinhasse robinhasse merged commit 8342d6c into pik-piam:main May 28, 2024
2 checks passed
@robinhasse robinhasse deleted the reportEnergy branch May 28, 2024 14:54
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