Skip to content

Commit ca9b120

Browse files
committed
Updating the pygeos documentation
1 parent 54c5e11 commit ca9b120

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

pygeos_package/pygeos/pygeos_documentation.rst

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
Python Input Processing: pygeos
2+
Advanced XML Features (pygeos)
33
###############################################################################
44

55
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:
3434

3535

3636

37-
Advanced XML Features
37+
Usage
3838
=================================
3939

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

5042

5143

5244
Command-line Example
5345
------------------------------
5446

5547
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:
5849

59-
pygeos input_file.xml
50+
``pygeos input_file.xml``
6051

6152
Optional arguments include:
53+
6254
- -o / --output = The desired name for the output file (otherwise, it is randomly generated)
6355
- -s / --schema = The location of a schema to validate the final .xml file
6456
- -v / --verbose = Increase module verbosity
6557

66-
This can be embedded within a call to GEOSX:
58+
For convenience, this script can be embedded within GEOSX arguments:
6759

68-
srun -n 16 geosx -i \`pygeos input_file.xml\`
60+
``srun -n 16 geosx -i `pygeos input_file.xml```
6961

7062

7163
Script-based Example
@@ -83,6 +75,20 @@ The pygeos module can also be called from within a python script. For example:
8375
8476
8577
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+
8692
Including Child XML Files
8793
------------------------------
8894
XML inputs can point to included children (these children can then include grandchildren and so on).

0 commit comments

Comments
 (0)