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

Ensure assignment of all regions without substation #699

Closed
2 tasks done
daniel-rdt opened this issue Jul 20, 2023 · 1 comment · Fixed by #922
Closed
2 tasks done

Ensure assignment of all regions without substation #699

daniel-rdt opened this issue Jul 20, 2023 · 1 comment · Fixed by #922
Assignees
Labels

Comments

@daniel-rdt
Copy link
Contributor

daniel-rdt commented Jul 20, 2023

Checklist

Describe the Bug

While building bus regions in build_bus_regions some onshore bus regions are filtered out for not having a substation. Fore some clusterings this leads to missing regions later on. They are, however, referenced for bus mapping since they still appear in the network.
This might be the cause for some issues with focus_weights.

Detail:
Here some regions for clustered onshore regions disappear:

for which in ("regions_onshore", "regions_offshore"):
regions = gpd.read_file(getattr(input, which))
regions = regions.reindex(columns=["name", "geometry"]).set_index("name")
regions_c = regions.dissolve(busmap)
regions_c.index.name = "name"
regions_c = regions_c.reset_index()
regions_c.to_file(getattr(output, which))

this is due to some regions that don't have a substation being filtered out here:

onshore_locs = n.buses.loc[c_b & n.buses.substation_lv, ["x", "y"]]

@fneum
Copy link
Member

fneum commented Oct 11, 2023

@FabianHofmann could you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants