oemof-solph icon indicating copy to clipboard operation
oemof-solph copied to clipboard

Fix/numpy2 compatibility

Open p-snft opened this issue 6 months ago • 0 comments

It's almost impossible to have doctests that work with both, numpy 1.x and numpy 2.x: The string representations changed to include the data type. Example:

> data = numpy.array([1,2,3])
> print(data[1])  # no longer prints "2"
np.int64(2)

Introducing a lower bound to Pandas as well allows to remove Pandas <2.2 compatibility code.

p-snft avatar Aug 22 '24 10:08 p-snft