-
Notifications
You must be signed in to change notification settings - Fork 239
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
Major improvement to OSM-based electricity grid (e.g. using relations, preserving substation locations) #1384
base: master
Are you sure you want to change the base?
Conversation
…eating voltage-specific bus endings in stations.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Validator ReportI am the Validator. Download all artifacts here. General Files comparison
NRMSE: Normalized (combined-min-max) Root Mean Square Error Model Metrics Comparing |
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.
I didn't check every line in detail, but the structure looks good and comparable to the previous version. I have a series of small comments that are easy to address:
if "s_nom" not in transformers: | ||
transformers["s_nom"] = config.get("s_nom", 2000) |
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.
What happens if some transformers have s_nom
, but not all of them. Will missing values be filled?
snakemake = mock_snakemake( | ||
"build_gdp_pop_non_nuts3", configfiles=["config/config.osm-raw.yaml"] | ||
) |
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.
revert?
@@ -84,7 +84,7 @@ co2_budget: | |||
|
|||
# docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#electricity | |||
electricity: | |||
voltages: [200., 220., 300., 380., 500., 750.] | |||
voltages: [220., 300., 330., 380., 400., 500., 750.] |
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 a short note why 200 kV disappears for clarification would be good.
# # list of all countries | ||
# country = ';'.join([G.nodes[node].get('country', '') for node in subgraph.nodes()]) | ||
# country = ';'.join(sorted(set(country.split(';')))) |
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 remove unused code?
temp_list = [split(l, p) for l in list_linestrings] | ||
# nest all geometries | ||
list_linestrings = [lstring for tval in temp_list for lstring in tval.geoms] | ||
for g_name, g_value in buses_all.groupby("station_id"): |
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.
If this is slow, could be converted to an apply function applied to each group.
Changes proposed in this Pull Request
build_osm_network
completely rewritten:Todo:
Checklist
envs/environment.yaml
.config/config.default.yaml
.doc/configtables/*.csv
.doc/data_sources.rst
.doc/release_notes.rst
is added.