Skip to main content

ogstools

A collection of Python tools aimed at evolving into a modeling toolchain around OpenGeoSys.

In this project we'll collect existing pre and postprocessing scripts for OpenGeoSys at first. Over time we'll develop an entire toolchain out of that collection. Currently we are at the stage of code collection.

Please donate your existing Python tools for OpenGeoSys

This can be done via merge request or via issue. For both we have set up templates for the merge request or issue description that will ask you for some details, e.g., purpose, features, application background of your contribution.

Use the merge request option if you want to contribute some tool that is very likely useful for many users of OGS.

Use the issue option if you have a bunch of scripts in some repository, out of which some might be useful for others and some are too special. However, the merge request option is preferred.

Minimum requirements for a donation

  • The Python scripts must be syntactically correct code.
  • There should be a short feature and usage description, e.g., in form of a README file
  • Please do not add large amounts of data.
  • You as a donator must have the right to donate the code, i.e., you are the sole author or all authors agree.

Development setup

Create a virtual environment, activate it and install required packages:

python -m venv .venv
source .venv/bin/activate # run this in every new shell session
pip install -e ".[test]"

# enable basic style checks once:
pre-commit install

CLI scripts can now be simply run:

msh2vtu --help

Testing with tox and pytest

Test environment are created and run with tox. Tests are executed via pytest

To run the tests:

tox # parallelize with `tox -p`

You can view a coverage report by opening htmlcov/index.html in a browser.

You can also run a single test environment with e.g.:

tox -e py39

Create a package

pyproject-build

Packages can then be found in dist/.

Build documentation

poetry run tox -e docs
make html

This will create the documentation files in docs/_build/html.

For development use the auto-generating and -reloading web server:

tox -e devdocs
# open http://127.0.0.1:5500 in a web browser

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ogstools-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ogstools-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ogstools-0.0.1.tar.gz.

File metadata

  • Download URL: ogstools-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ogstools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b845eeabe6a5d2260a6d1c280a2e4e8c736f96ee67243809463960adb78d330
MD5 40d2a40b3e9b05577197dc18bcfc4754
BLAKE2b-256 a091c30d8b3074dfce960e01a47ba043d12daea1f92d21a82fcb65ac0f0c8aa0

See more details on using hashes here.

File details

Details for the file ogstools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ogstools-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ogstools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23970548da1b4c7c465bc6e5ba6b779799610207e950c53be2173a69c2c56b76
MD5 bebbff9fe5ff88b2b6541d5c0912acb3
BLAKE2b-256 3468f1d355f806cd5ead6da3d84eca425393e0bb99feef2ea4951fe6b799a3ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page