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

Fix/v0.5 fixes in dev #1125

Merged
merged 9 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ These are new features and improvements of note in each release


.. include:: whatsnew/v0-6-0.rst
.. include:: whatsnew/v0-5-6.rst
.. include:: whatsnew/v0-5-5.rst
.. include:: whatsnew/v0-5-4.rst
.. include:: whatsnew/v0-5-3.rst
Expand Down
17 changes: 17 additions & 0 deletions docs/whatsnew/v0-5-6.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
v0.5.6
------

Bug fixes
#########

* Update required Pyomo version to allow working with numpy >= 2.0.0.

Known issues
############

* Indexing of Storage with capacity investment is off by one.

Contributors
############

* Patrik Schönfeldt
2 changes: 0 additions & 2 deletions docs/whatsnew/v0-6-0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Other changes
Known issues
############

* Incompatible to numpy >= 2.0.0. This is because of Pyomo, but we have to
enforce a lower version in our package.

Contributors
############
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ requires-python = ">=3.8"
dependencies = [
"blinker",
"dill",
"numpy < 2.0.0",
"pandas >= 2.0.0",
"pyomo >= 6.6.0, < 7.0",
"numpy >= 2.0.0",
"pandas >= 2.2.0",
"pyomo >= 6.8.0",
"networkx",
"oemof.tools >= 0.4.3",
"oemof.network >= 0.5.0",
Expand Down
6 changes: 3 additions & 3 deletions src/oemof/solph/_plumbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ def sequence(iterable_or_scalar):
--------
>>> y = sequence([1,2,3,4,5,6,7,8,9,10,11])
>>> y[0]
1
np.int64(1)

>>> y[10]
11
np.int64(11)

>>> import pandas as pd
>>> s1 = sequence(pd.Series([1,5,9]))
>>> s1[2]
9
np.int64(9)

>>> x = sequence(10)
>>> x[0]
Expand Down
2 changes: 1 addition & 1 deletion src/oemof/solph/flows/_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Flow(Edge):
>>> f.variable_costs[2]
5
>>> f.fix[2]
4
np.int64(4)

Creating a flow object with time-depended lower and upper bounds:

Expand Down
Loading