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

pypsa>=0.25 requires upgrade of network clustering #787

Open
pz-max opened this issue Jul 15, 2023 · 1 comment
Open

pypsa>=0.25 requires upgrade of network clustering #787

pz-max opened this issue Jul 15, 2023 · 1 comment
Labels
help wanted Extra attention is needed improvement New feature or request

Comments

@pz-max
Copy link
Member

pz-max commented Jul 15, 2023

          To allow in the env.yaml `pypsa>=0.25` we need to upgrade the network clustering: https://github.com/PyPSA/pypsa-eur/pull/696 (at the time of writing in a PR in PyPSA-Eur)

Originally posted by @pz-max in #786 (comment)

@davide-f davide-f linked a pull request Dec 2, 2023 that will close this issue
8 tasks
@davide-f davide-f moved this to Todo in pypsa-earth Dec 6, 2023
@ekatef
Copy link
Member

ekatef commented Mar 15, 2024

It appears that PyPSA update create some conflicts with the current PyPSA-Earth network structure. In particular, it relates to behaivour of make_consense() function applied during bus aggregation.

Now buses attributes to match are defined as using a combination of aggregation strategies with the column names of in the buses dataframe. Since n.buses contains in our case columns like bus_id or tag_area, an assertion check that all such attributes are the same across all the clustered buses, it leads to an error.

It seems to be an explanation for AssertionError: In Bus cluster bus_id, the values of attribute bus_id do not agree like reported in #908 and #974.

The most straightforward approach to use PyPSA>=0.25 seems to align the network structure at the clustering stage with the structure expected by PyPSA. It would be also great to document these expectations towards the structue of the network data.

@ekatef ekatef added improvement New feature or request help wanted Extra attention is needed labels Mar 15, 2024
@ekatef ekatef mentioned this issue Jul 21, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed improvement New feature or request
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants