/GEOLib-Plus

GEOLib+ is built on top of GEOLib and provides CPT (both GEF and XML) intepretation, among other useful tooling.

Primary LanguagePython

GEOLib+

GEOLib+ is a Python package to read, interprent and plot cpt files. The package can also be used to get soil parameters for constitutive models.

Installation

Install GEOLib+ with:

$ pip install d-geolib-plus

Requirements

To install the required dependencies to run GEOLib+ code, run:

$ pip install -r requirements

Or, when having poetry installed (you should):

$ poetry install

Testing & Development

Make sure to have the server dependencies installed:

$ poetry install -E server

In order to run the testcode, from the root of the repository, run:

$ pytest

or, in case of using Poetry

$ poetry run pytest

Running flake8, mypy is also recommended. For mypy use:

$ mypy --config-file pyproject.toml geolib

Documentation

In order to run the documentation, from the root of the repository, run:

$ cd docs
$ sphinx-build . build -b html -c .

The documentation is now in the build subfolder, where you can open the index.html in your browser.

Build wheel

To build a distributable wheel package, run:

$ poetry build

The distributable packages are now built in the dist subfolder.