Sei sulla pagina 1di 1

Main.

py Description

Main Function:
This script is able to compare 2 sets of lookup tables in the soil tab with each other, as well as comparing
an XML data of the soil tab to the soil lookup table

The main script is appropriately named Main.py while the calculations are done in the separate scripts
compare_lut_lut2 (to compare lookup tables) and compare_xml_lut.py to compare xml file to a lookup
table.

Logfile.log records any errors or crashes that may occur when running the script Main.py

Instructions:
1. Start by opening Main.py

2. Edit the directories to the main data set and to the benchmark dataset as commented below

- file_path is the path to the main Lut

- file_path2 is the path to the benchmark lut

- settings_path is the path to the xml file to be compared with the Lut main lut from file_path

IMPORTANT NOTE: please keep in mind that copying the path from Windows explorer will not work as
the directories in python must be separated by a forward slash "/" and not a backslash "\" as used in
windows explorer

3. Run the script Main.py

4. Optional step:

If you wish to only compare Lookup tables please comment out the last line
"compare_xml_lut.compare_xml_lut()" in the script by inserting a # at the beginning of the line

Or

If you wish to only compare an XML file to a look up table please comment out the line
"compare_lut_lut2.compare_lut_lut()" in the script by inserting a # at the beginning of the line

Potrebbero piacerti anche