-
Notifications
You must be signed in to change notification settings - Fork 40
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
Reorganize grid related modules and objects #650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense.
import pandas as pd | ||
|
||
|
||
def add_column_to_data_frame(data_frame, column_dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just looking through (and this is really just a stupid side-comment), there is the nice pandas version assign
for that purpose
df = df.assign(**column_dict)
might be helpful for future implementations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I get rid of the add_column_to_data_frame
function and used assign
when needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Pull Request doc
Purpose
Move and rename modules/classes/functions/tests related to grid creation from different sources and engines. The purpose is to make it clear where the data come from. To illustrate, we had a
powersimdata.input.scenario_grid
module for reading the grid.mat file created by REISE/REISE.jl. In the future we will likely have CEM scenarios ran with PyPSA and the grid will be converted differently. For this reason the currentscenario_grid
module is renamedreise_to_grid
.Please propose other names/location ideas if you have some in mind.
What the code is doing
No new code. Modules /classes/functions/tests have been renamed and relocated.
Testing
Run existing tests
Where to look
In the new
powersimdata.input.converter
andpowersimdata.input.exporter
modulesUsage Example/Visuals
N/A
Time estimate
It should be short.