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

Powerplant data functions #198

Merged
merged 20 commits into from
Oct 8, 2024
Merged

Conversation

maartenbrinkerink
Copy link
Collaborator

@maartenbrinkerink maartenbrinkerink commented Sep 16, 2024

Description

Large overhaul of the powerplant_data script by splitting 'main' in individual functions as it was incredibly difficult to navigate and problem solve. Have not yet separated transmission from the powerplant_data script (next step).

Issue Ticket Number

Documentation

-Split the 'main' in powerplant_data into individual functions to improve readability and the ease of debugging.
-Split in functions
-Transmission not yet separated
-User config still part of the script
@maartenbrinkerink
Copy link
Collaborator Author

@trevorb1 I've finished the refactoring of the powerplant script which on my end is now functional both standalone from main as well as by running the full workflow. If you have time could you do a review at this point?

Note that I've moved the configurable variables to support the standalone functioning of the set of scripts from main to constants to contain the number of places where users should be looking for custom changes. If you agree with this approach I suggest to apply the same for the demand folder. Let me know!

Copy link
Member

@trevorb1 trevorb1 left a comment

Choose a reason for hiding this comment

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

Thanks for getting a start on this @maartenbrinkerink! Maybe we can discuss in person tomorrow, but this can not be merged until the snakemake/globals issue is resolved.

I have some thoughts about how to address this issue and will launch a draft PR that builds off this to get your thoughts.

trevorb1 and others added 3 commits October 6, 2024 22:58
-Updates following @trevorb1 PR review comments
-Fixed user defined IAR bug following user defined capacities for transmission
-Added comment in main scripts that config variables defined locally are for testing purposes only
-Compared results to master which are in line with small differences possibly as a result of the changes in the config file (user defined capacities separated for transmission and powerplants)
@maartenbrinkerink maartenbrinkerink merged commit 452bd4e into master Oct 8, 2024
6 checks passed
@maartenbrinkerink maartenbrinkerink deleted the powerplant_data-functions branch October 8, 2024 20:24
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