Skip to content

0.8.0: Allow pip installation

Latest

Choose a tag to compare

@jnettels jnettels released this 20 Aug 07:34
· 3 commits to main since this release

Allow pip installation

Previously, dhnx_addons was published to conda. But dhnx_addons has several key dependencies not published there, most notably dhnx, oemof.demand, oemof.solph and pandapipes, which made the installation difficult and error-prone.

In an effort to get rid of conda, this project has now been moved to "proper" pyproject.toml build definitions and is tested as a regular pip install. It is not yet published on pypi, but you can easily install it directly from GitHub with e.g.:

pip install "dhnx_addons @ https://github.com/jnettels/dhnx_addons/archive/main.tar.gz"

A word of caution: The dependencies geopandas, fiona, tobler, etc. that do the GIS-related work rely on GDAL which sometimes causes problems on Windows machines. You may see errors about some `dll`` files missing. This needs to be investigated further.

Updated dependencies

  • Updates and deprecations in many dependencies since the last release were fixed
  • New use cases in dhnx_addons required updates to dhnx
  • A pandas 3 - compatible fork of pandapipes was created to allow stable installation of all dependencies

Actual changes in functionality

See the full changelog below, just a few notes:

  • Existing pipes (in dhnx) are now supported throughout the workflows
  • The simultaneity approach has been updated for dhnx and pandapipes
    • As a bonus, the resulting network lines saved to a gpkg are now ordered by flow direction, so in e.g. QGIS you can add arrows to lines to visualize flow direction
  • For pandapipes, a circular flow direction has been implemented, which creates a network that allows to simulate both supply and return in a closed loop. This yields information about the total pressure drop of the network
  • An experimental downloader for public alkis data has been added
  • Functions for reading roof area (or complete geometries) from LoD2 CityGML files have been added (e.g. for solar yield estimations)
  • There are some intentional breaking changes

Full Changelog: 0.7.1...0.8.0