oemof / DHNx

District heating system optimisation and simulation models
MIT License
30 stars 12 forks source link

Fix deprecations in dependencies shapely 1.8.0 and pandas 1.4.1 #85

Closed jnettels closed 2 years ago

jnettels commented 2 years ago

Upgrading to shapely 1.8.0 and pandas 1.4.1 causes an actual error and lots of warnings in dhnx example scripts. This PR is an attempt to fix as many of those as possible.

Fixes #84

See the related issue #84 for detailed description of the issues and fixes.

A word of warning: I have not tested backwards-compatibility of the changes I made with older versions of shapely and pandas. Pandas should be fine, shapely has more drastic changes, as described here: https://shapely.readthedocs.io/en/stable/migration.html?msclkid=111ac3d5a9fc11ecadd660a4e7d6232a