This repository contains a set of python packages that are used alongside GEOS.
WARNING: This repository is currently under refactoring to improve package organization, maintainability, and dependency management. The following describes the final package organisation. Some packages may still miss or contain code that will be move later.
geos-ats
package includes tools for managing integrated tests for GEOS.pygeos-tools
package adds a variety of tools for working with pygeosx objects.
The next packages are dedicated to pre- and post-process GEOS inputs/outputs.
The following packages contain basic utilities used by the other ones:
geos-utils
: basic utilitiesgeos-geomecanics
: geomechanics functions and data model
The following packages define data models, vtk filters, and user-oriented API:
geos-xml-tools
: xml reader and writer dedicated to GEOS xml filehdf5-wrapper
: wrapper to load hdf5 filesgeos-mesh
: general mesh processing toolsgeos-prep
: GEOS pre-processing toolsgeos-posp
: GEOS post-processing tools
The following packages define hands-on executables that can be used through the command line:
mesh-doctor
: GEOS pre-processing applicationtime-history
: load and plot hdf5 filesgeos-xml-viewer
: load GEOS xml file and display geometrical objects (mesh, boxes, wells)geos-trame
: web interface to check, display objects, and edit GEOS xml file (see Trame documentation)
The following package defines Paraview plugins that wrap GEOS Python tools
geos-pv
GEOS Python packages dependency tree (inter-dependency and main external dependencies) is the following:
├── geos-ats
├── pygeos-tools
├── geos-utils
├── geos-geomechanics
│ ├── geos-utils
│
├── hdf5-wrapper
│ ├── h5py
│
├── geos-xml-tools
│ ├── lxml
│
├── geos-mesh
│ ├── geos-utils
│ ├── vtk
│
├── geos-prep
│ ├── geos-mesh
│ ├── geos-xml-tools
│
├── geos-posp
│ ├── geos-mesh
│ ├── geos-geomechanics
│
├── time-history
│ ├── hdf5-wrapper
│
├── mesh-doctor
│ ├── geos-prep
│ ├── pyvista
│
├── geos-trame
│ ├── geos-xml-tools
│ ├── geos-mesh
│ ├── pyvista
│ ├── trame
│
├── geos-xml-viewer
│ ├── geos-xml-tools
│ ├── geos-mesh
│ ├── pyvista
│
├── geos-pv
├── geos-prep
├── geos-posp
├── geos-xml-tools
├── paraview
See the documentation for additional details about the packages and how to use them.
-
Automatic installation for GEOS developpers:
GEOS Python packages can be automatically installed after having build GEOS by running
make geosx_python_tools
in the GEOS build directory. -
Manual installation:
GEOS Python packages can be manually installed with pip using
python
>= 3.10.To install any package, run the following commands from the geosPythonPackage directory:
python -m venv .venv source .venv/bin/activate python -m pip install --upgrade pip python -m pip install ./<PACKAGE_NAME>
You can test installed package by running the commands:
python -m pip install pytest python -m pytest ./<PACKAGE_NAME>
[!WARNING] Due to local package conflicts with
pip install
, it is recommended either to build the packages one by one, or to inlude only top-level packages (see dependency tree hereabove) in the build list.[!NOTE] geos-pv package cannot be build alone, but together with Paraview (see Paraview compilation guide). It is recommended to use Paraview v5.12+, which is based on python 3.10+. Alternatively, plugins from geos-pv/PVplugins can be manually loaded into Paraview (see documentation).
GEOS Python packages repository gathers python scripts from any GEOS developpers and users. Feel free to share any scripts that may benefit to the GEOS community.
If you would like to report a bug, please submit an issue.
If you would like to contribute to GEOS Python packages, please respect the following guidelines:
- Create a new branch named from this template:
[CONTRIBUTOR]/[TYPE]/[TITLE]
where CONTRIBUTOR is the name of the contributor, TYPE is the type of contribution among 'feature', 'refactor', 'doc', 'ci', TITLE is a short title for the branch. - Add your code trying to integrate into the current code architecture.
- Push the branch, open a new PR respecting naming semantics, and add reviewers
If you do not have the rights to push the code and open new PRs, consider opening a new issue to explain what you want to do and ask for the dev rights.
Any new package must have the following architecture:
package-name/
├── pyproject.toml
├── src
│ ├── geos
│ ├── package_name
│ ├── file1.py
│ ├── file1.py
├── tests
├── test1.py
├── test2.py
If you want a package to depend on another GEOS Python package (let's say geos-utils
), in the pyproject.toml the dependency takes the form:
dependencies = [
...
"geos-utils @ file:./geos-utils",
]
[!IMPORTANT] geos-pv dependencies are managed using a requirements.txt (together with the setup.py) file where all internal (and external if needed) dependencies are present. It ensures that internal dependency paths are correctly set when plugins are manually loaded into Paraview.
For release details and restrictions, please read the LICENSE file.
For copyrights, please read the COPYRIGHT file.
For contributors, please read the CONTRIBUTORS file.
For acknowledgements, please read the ACKNOWLEDGEMENTS file.
For notice, please read the NOTICE file.