You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next packages are dedicated to pre- and post-process GEOS inputs/outputs.
21
21
22
-
The following packages contain basic utilities used by the other ones:
23
-
24
-
* `geos-utils`: basic utilities
25
-
* `geos-geomecanics`: geomechanics functions and data model
26
-
27
-
28
-
The following packages define data models, vtk filters, and user-oriented API:
29
-
30
-
* `geos-xml-tools`: xml reader and writer dedicated to GEOS xml file
31
-
* `hdf5-wrapper`: wrapper to load hdf5 files
32
-
* `geos-mesh`: general mesh processing tools
33
-
* `geos-prep`: GEOS pre-processing tools
34
-
* `geos-posp`: GEOS post-processing tools
35
-
36
-
37
-
The following packages define hands-on executables that can be used through the command line:
38
-
39
-
* `mesh-doctor`: GEOS pre-processing application
40
-
* `time-history`: load and plot hdf5 files
41
-
* `geos-xml-viewer`: load GEOS xml file and display geometrical objects (mesh, boxes, wells)
42
-
* `geos-trame`: web interface to check, display objects, and edit GEOS xml file (see [Trame documentation](https://kitware.github.io/trame/guide/tutorial/))
43
-
44
-
45
-
The following package defines [Paraview](https://docs.paraview.org/) plugins that wrap GEOS Python tools
46
-
47
-
* `geos-pv`
48
-
22
+
The following packages contain basic utilities used by the other ones:
23
+
24
+
*`geos-utils`: basic utilities
25
+
*`geos-geomecanics`: geomechanics functions and data model
26
+
27
+
28
+
The following packages define data models, vtk filters, and user-oriented API:
29
+
30
+
*`geos-xml-tools`: xml reader and writer dedicated to GEOS xml file
31
+
*`hdf5-wrapper`: wrapper to load hdf5 files
32
+
*`geos-mesh`: general mesh processing tools
33
+
*`geos-prep`: GEOS pre-processing tools
34
+
*`geos-posp`: GEOS post-processing tools
35
+
36
+
37
+
The following packages define hands-on executables that can be used through the command line:
38
+
39
+
*`mesh-doctor`: GEOS pre-processing application
40
+
*`time-history`: load and plot hdf5 files
41
+
*`geos-xml-viewer`: load GEOS xml file and display geometrical objects (mesh, boxes, wells)
42
+
*`geos-trame`: web interface to check, display objects, and edit GEOS xml file (see [Trame documentation](https://kitware.github.io/trame/guide/tutorial/))
43
+
44
+
45
+
The following package defines [Paraview](https://docs.paraview.org/) plugins that wrap GEOS Python tools
46
+
47
+
*`geos-pv`
48
+
49
+
GEOS Python packages dependency tree (inter-dependency and main external dependencies) is the following:
50
+
51
+
```
52
+
|-- geos-ats
53
+
|-- pygeos-tools
54
+
|-- geos-utils
55
+
|-- geos-geomechanics
56
+
| |-- geos-utils
57
+
|
58
+
|-- hdf5-wrapper
59
+
| |-- h5py
60
+
|
61
+
|-- geos-xml-tools
62
+
| |-- lxml
63
+
|
64
+
|-- geos-mesh
65
+
| |-- geos-utils
66
+
| |-- vtk
67
+
|
68
+
|-- geos-prep
69
+
| |-- geos-mesh
70
+
| |-- geos-xml-tools
71
+
|
72
+
|-- geos-posp
73
+
| |-- geos-mesh
74
+
| |-- geos-geomechanics
75
+
|
76
+
|-- time-history
77
+
| |-- hdf5-wrapper
78
+
|
79
+
|-- mesh-doctor
80
+
| |-- geos-prep
81
+
| |-- pyvista
82
+
|
83
+
|-- geos-trame
84
+
| |-- geos-xml-tools
85
+
| |-- geos-mesh
86
+
| |-- pyvista
87
+
| |-- trame
88
+
|
89
+
|-- geos-xml-viewer
90
+
| |-- geos-xml-tools
91
+
| |-- geos-mesh
92
+
| |-- pyvista
93
+
|
94
+
|-- geos-pv
95
+
|-- geos-prep
96
+
|-- geos-posp
97
+
|-- geos-xml-tools
98
+
|-- paraview
99
+
```
49
100
50
101
See the [documentation](https://geosx-geosx.readthedocs-hosted.com/projects/geosx-geospythonpackages/en/latest/) for additional details about the packages and how to use them.
51
102
@@ -59,80 +110,25 @@ Installation
59
110
60
111
**Manual installation:*
61
112
62
-
GEOS Python packages can be manually installed with pip using `python` >= 3.10. In this case, pay attention to package inter-dependencies. Start by installing the basic utilities, then the api and vtk filters, and finally the top level executables.
63
-
64
-
GEOS Python packages dependency tree (inter-dependency and main external dependencies) is the following:
65
-
66
-
```
67
-
|-- geos-ats
68
-
|-- pygeos-tools
69
-
|-- geos-utils
70
-
|-- geos-geomechanics
71
-
| |-- geos-utils
72
-
|
73
-
|-- hdf5-wrapper
74
-
| |-- h5py
75
-
|
76
-
|-- geos-xml-tools
77
-
| |-- lxml
78
-
|
79
-
|-- geos-mesh
80
-
| |-- geos-utils
81
-
| |-- vtk
82
-
|
83
-
|-- geos-prep
84
-
| |-- geos-mesh
85
-
| |-- geos-xml-tools
86
-
|
87
-
|-- geos-posp
88
-
| |-- geos-mesh
89
-
| |-- geos-geomechanics
90
-
|
91
-
|-- time-history
92
-
| |-- hdf5-wrapper
93
-
|
94
-
|-- mesh-doctor
95
-
| |-- geos-prep
96
-
| |-- pyvista
97
-
|
98
-
|-- geos-trame
99
-
| |-- geos-xml-tools
100
-
| |-- geos-mesh
101
-
| |-- pyvista
102
-
| |-- trame
103
-
|
104
-
|-- geos-xml-viewer
105
-
| |-- geos-xml-tools
106
-
| |-- geos-mesh
107
-
| |-- pyvista
108
-
|
109
-
|-- geos-pv
110
-
|-- geos-prep
111
-
|-- geos-posp
112
-
|-- geos-xml-tools
113
-
|-- paraview
114
-
```
113
+
GEOS Python packages can be manually installed with pip using `python` >= 3.10.
115
114
116
-
For the complete installation of GEOS pre- and post-processing packages, run the following commands from the geosPythonPackage directory:
115
+
To install any package, run the following commands from the geosPythonPackage directory:
You can test the installation by running the commands:
124
+
You can test installed package by running the commands:
129
125
130
126
```
131
127
python -m pip install pytest
132
-
python -m pytest ./*
128
+
python -m pytest ./<PACKAGE_NAME>
133
129
```
134
130
135
-
**NOTE: geos-pv package cannot be build alone, but together with Paraview ([see Paraview compilation guide](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md)). It is recommended to use Paraview v5.12+, which is based on python 3.10+. Alternatievly, plugins from geos-pv/PVplugins can be manually loaded into Paraview ([see documentation](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#python-algorithm)).**
131
+
**NOTE: geos-pv package cannot be build alone, but together with Paraview ([see Paraview compilation guide](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Documentation/dev/build.md)). 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](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#python-algorithm)).**
136
132
137
133
138
134
Contributions
@@ -150,6 +146,46 @@ If you would like to contribute to GEOS Python packages, please respect the foll
150
146
151
147
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.
152
148
149
+
Any new package must have the following architecture:
150
+
151
+
```
152
+
package-name
153
+
|-- pyproject.toml
154
+
|-- setup.py
155
+
|-- src
156
+
| |-- geos
157
+
| |-- package_name
158
+
| |-- file1.py
159
+
| |-- file1.py
160
+
|-- tests
161
+
|-- test1.py
162
+
|-- test2.py
163
+
```
164
+
165
+
The *setup.py* file is optional. It is required if the package depends on another GEOS Python package located in the root directory. If you want a package1 to depend on package2, follow this [procedure](https://stackoverflow.com/questions/75159453/specifying-local-relative-dependency-in-pyproject-toml):
166
+
167
+
* in the *package1/pyproject.py*, replace the tag `dependencies = ["external_packageX", "external_packageY",]` with `dynamic = ["dependencies"]`
168
+
* create the *package1/setup.py* file
169
+
* copy the following lines in the *setup.py* and update the dependencies
170
+
```
171
+
from pathlib import Path
172
+
from setuptools import setup
173
+
174
+
# This is where you add any fancy path resolution to the local lib:
The `geos-utils` python package defines utilities for all GEOS python packages including a logger, GEOS constants, basic functions, and unit management tools.
0 commit comments