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

Implement workaround for oemof.solph 0.5.1 compatibility #134

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

jnettels
Copy link
Contributor

@jnettels jnettels commented Oct 24, 2023

Version 0.5.1 of oemof.solph introduced the (experimental) feature of supporting multi-period investments:
https://oemof-solph.readthedocs.io/en/stable/changelog.html#v0-5-1-august-31st-2023

The update changes the way certain objects with a time index are referenced, since the index now consists of a (periods, timesteps) tuple. This breaks the DHNx code in a couple of places.

Add a period=0 to lines where the time index is called, in a try-except statement that retains compatibility with oemof.solph 0.5.0

Fixes #133.

Add a period=0 to lines where the time index is called, which has
been changed to a tuple of (period, time step) in oemof.solph 0.5.1
@p-snft p-snft merged commit 96c8370 into dev Oct 9, 2024
9 checks passed
@p-snft p-snft deleted the fix/oemof.solph-0.5.1 branch October 9, 2024 14:43
@p-snft p-snft mentioned this pull request Oct 9, 2024
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 this pull request may close these issues.

Compatibility with oemof.solph v0.5.1
2 participants