-
Notifications
You must be signed in to change notification settings - Fork 210
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
Custom ppl opts #739
Custom ppl opts #739
Changes from 7 commits
81e02b1
879a146
65d2ce9
458c62d
ac6fdc7
6521c8c
6ef256e
2f2cb36
a29c8b7
150d547
39981f9
f221ade
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,9 +247,12 @@ def add_custom_powerplants(ppl, inputs, config): | |
# if isinstance(custom_ppl_query, str): | ||
# add_ppls.query(custom_ppl_query, inplace=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know pypsa-eur is using line 247 and 248. Can you figure out its purpose? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have checked the code and it seems that it is left to enable some query to custom powerplants being added. We can leave them as commented or we can remove them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But it is better to remove them, since if enabled it might contradict with the proposed PR. |
||
|
||
return pd.concat( | ||
[ppl, add_ppls], sort=False, ignore_index=True, verify_integrity=True | ||
) | ||
if custom_ppl_query == "merge": | ||
return pd.concat( | ||
[ppl, add_ppls], sort=False, ignore_index=True, verify_integrity=True | ||
) | ||
elif custom_ppl_query == "replace": | ||
return add_ppls | ||
|
||
|
||
def replace_natural_gas_technology(df): | ||
|
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.
Could you change the comment to wherever possible:
# "false" use only powerplantmatching (ppm) data, "merge" combines ppm and custom powerplants, "replace" use only custom powerplants