GEOLib is a Python package to generate, execute and parse several D-Serie and D-GEO Suite numerical models.
Install GEOLib with:
$ pip install d-geolibConfigure your environment using the instructions on our Setup page. You may get the console executables from the Deltares download portal, or in the case of the D-GEO Suite, you may copy the contents of the installation 'bin' directory to your console folder.
If you want to make changes to GEOLib you can run the source code from GitHub directly on your local machine, please follow the instructions below on how to set up your development environment using Pixi.
You do not need to follow these instructions if you want to use the GEOLib package in your project.
To install the required dependencies to run GEOLib code, use Pixi:
$ pixi installThis will create a reproducible development environment with all dependencies.
Make sure all dependencies are installed:
$ pixi installIn order to run the testcode, from the root of the repository, run:
$ pixi run pytestRunning mypy for type checking:
$ pixi run mypy --config-file pyproject.toml geolibRunning standard linters:
$ pixi run isort .
$ pixi run black .In order to build the documentation, from the root of the repository, run:
$ cd docs
$ pixi run sphinx . build -b html -c .The documentation is now in the build subfolder, where you can open the index.html in your browser.
To build a distributable wheel package using hatchling:
$ pip install build
$ python -m buildThe distributable packages are now built in the dist subfolder.
To update dependencies and lock files, use Pixi for local development:
$ pixi installCI uses uv for multi-version testing and will regenerate uv.lock automatically.
In order to run code cleanup/linter use the following commands:
$ pixi run isort .
$ pixi run black .