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/.

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.2.tar.gz (12.3 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.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ogstools-0.0.2.tar.gz
  • Upload date:
  • Size: 12.3 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.2.tar.gz
Algorithm Hash digest
SHA256 160c6a0c92ffdb5a441157ca1375a7af53d6e864e4895edb75cdff038e36ba86
MD5 cb39ca5f2408c6d1b365633a5c81db89
BLAKE2b-256 efe9650b0075ec456887ce806083008fe829d4d6ee84441b8662f0de86527f5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ogstools-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6bac676554ea1bd18b9d19b8e977b539176b9990a1ed4bdeb37afb48b0ed56
MD5 4260c2bf132b7341a96d46432fd880f4
BLAKE2b-256 f8701c0e0f2a50704e07f61a290f34e28f491512fc469c366ffc68f9710bade1

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 Sentry Error logging StatusPage Status page