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

Update pypsa version (to 0.25.2) #663

Closed
ulfmueller opened this issue Sep 21, 2023 · 6 comments · Fixed by #678
Closed

Update pypsa version (to 0.25.2) #663

ulfmueller opened this issue Sep 21, 2023 · 6 comments · Fixed by #678
Assignees

Comments

@ulfmueller
Copy link
Member

ulfmueller commented Sep 21, 2023

In general it is good to be state-of-the-art again and in particular I want to use the optimize_with_rolling_horizon() functionality (see #664 )...

I think it will be crucial then to mainly switch from lopf() to optimize() since many functionalities are no longer developed for the lopf()...

@ClaraBuettner
Copy link
Contributor

This will also require updating pandas and python (now >=3.9)
We should also decide if we want to use the new model-building option which would require adding our extra functionalities in this syntax.

@ClaraBuettner
Copy link
Contributor

There is already pypsa 0.25.2 that includes some bugfixes, so I would directly switch to that version

@ClaraBuettner
Copy link
Contributor

Changes in the clustering of pypsa require that all lines and transformers have an r != 0 assigned. For lines, this will be done in the data model. But so far, no transformer has an r value. We should decide if we can/want to fix this in the data model creation or within etrago.

@ClaraBuettner
Copy link
Contributor

ClaraBuettner commented Nov 22, 2023

Check arguments:

  • ehv clustering
  • k means (gas and AC)
  • k medoid-dijkstra (gas and AC)
  • skip snapshots
  • snapshot clustering
  • segmentation
  • temporal disaggregation
  • spatial disaggregation
  • foreign DC lines
  • capacities foreign countries
  • load shedding
  • lopf
  • pf

Plots will be checked in #685

@ClaraBuettner
Copy link
Contributor

The current version of the feature branch is working fine with the parameters that are already checked in the list above.
You can use the branch for some tests when you take into account that the other setting (eg. ehv clustering) are not working or not checked yet.

ulfmueller added a commit that referenced this issue Nov 28, 2023
@ClaraBuettner
Copy link
Contributor

The problems that occurred when using ehv clustering were actually not a real bug, but a new behaviour in pypsa's clustering: When all time series values are the default value, the time series is dropped because it is the same as the static default value. Especially in test cases with only a few snapshots, the p__max_pu time series of some wind offshore generators is always 1.
But eTraGos function "weighting_for_scenario" was always looking for a time series if the carrier was one of ["solar", "wind_onshore", "wind offshore"] which was not compatible with the new pypsa behaviour.
I will adjust our function in eTraGo.

@ClaraBuettner ClaraBuettner changed the title Update pypsa version (to 0.25.1) Update pypsa version (to 0.25.2) Dec 1, 2023
ClaraBuettner added a commit that referenced this issue Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants