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
Pygeos is a python module that enables advanced .xml features in GEOSX.
@@ -34,38 +34,30 @@ To use the virtual environment, do one of the following:
34
34
35
35
36
36
37
-
Advanced XML Features
37
+
Usage
38
38
=================================
39
39
40
-
The xml preprocessor in pygeos is designed to take an raw input file, and generate an new file that can be directly read by GEOSX.
41
-
The syntax for the advanced xml format is given below.
42
-
During the processing the order of operations are:
43
-
44
-
1) Merging any included xml files into the root structure
45
-
2) Substituting in any parameters
46
-
3) Evaluating unit strings
47
-
4) Evaluating symbolic math
48
-
5) Error checking and validation
40
+
Pygeos can be used either as a command-line tool or be imported into a python script. Note: pygeos will be on your path if you are in a virtual environment. Otherwise, it can be called directly from the bin directory of your python distribution.
49
41
50
42
51
43
52
44
Command-line Example
53
45
------------------------------
54
46
55
47
Pygeos can be called from the command line to process .xml files via the script.
56
-
(Note: this be on your path if you are in a virtual environment. Otherwise, it can be called directly from the bin directory of your python distribution.)
57
-
The following will read a raw .xml file, generate a processed version, and return the new file name.
48
+
The following will read a raw .xml file, generate a processed version, and return the new file name:
58
49
59
-
pygeos input_file.xml
50
+
``pygeos input_file.xml``
60
51
61
52
Optional arguments include:
53
+
62
54
- -o / --output = The desired name for the output file (otherwise, it is randomly generated)
63
55
- -s / --schema = The location of a schema to validate the final .xml file
64
56
- -v / --verbose = Increase module verbosity
65
57
66
-
This can be embedded within a call to GEOSX:
58
+
For convenience, this script can be embedded within GEOSX arguments:
67
59
68
-
srun -n 16 geosx -i \`pygeos input_file.xml\`
60
+
``srun -n 16 geosx -i `pygeos input_file.xml```
69
61
70
62
71
63
Script-based Example
@@ -83,6 +75,20 @@ The pygeos module can also be called from within a python script. For example:
83
75
84
76
85
77
78
+
Advanced XML Features
79
+
=================================
80
+
81
+
The xml preprocessor in pygeos is designed to take an raw input file, and generate an new file that can be directly read by GEOSX.
82
+
The syntax for the advanced xml format is given below.
83
+
During the processing the order of operations are:
84
+
85
+
1) Merging any included xml files into the root structure
86
+
2) Substituting in any parameters
87
+
3) Evaluating unit strings
88
+
4) Evaluating symbolic math
89
+
5) Error checking and validation
90
+
91
+
86
92
Including Child XML Files
87
93
------------------------------
88
94
XML inputs can point to included children (these children can then include grandchildren and so on).
0 commit comments