| Revision 631,
882 bytes
checked in by jdalbey, 5 years ago
(diff) |
|
appendRatingToLog.py evalratings.csv New files added for #251.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | # Merge log files and sort by timestamp |
|---|
| 2 | # Invoke from 'trunk' folder |
|---|
| 3 | # TODO: Add error handling - missing files, not executed from 'trunk', ... |
|---|
| 4 | |
|---|
| 5 | # 1. Runs a python program named "extract_caddetails" |
|---|
| 6 | # to extract CAD DETAIL lines from incident_script.xml |
|---|
| 7 | # and creates an output file "caddetails.csv" |
|---|
| 8 | PYTHONPATH=webapps/unifiedlogger.zip python -m extract_caddetails |
|---|
| 9 | |
|---|
| 10 | # 2. Define a variable for the directory containing the data files |
|---|
| 11 | dir="webapps/dynamicdata" |
|---|
| 12 | |
|---|
| 13 | # 3. Merge three files: unified log, cad details, and evaluation ratings |
|---|
| 14 | # then sort them by timestamp (reverse chronological). |
|---|
| 15 | # Final result placed in "unifiedlog_final.csv" |
|---|
| 16 | cat $dir/unifiedlog.csv $dir/caddetails.csv $dir/ratings.csv | sort > $dir/unifiedlog_final.csv |
|---|
| 17 | |
|---|
| 18 | # 4. Next, launch the webserver and browse to localhost:8080/unifiedlogdisplay.html |
|---|
| 19 | # to show a nicely formatted version of the results. |
|---|
| 20 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.