py_error

Post-run parser for error logs from parallel simulation runs.

This is the post-processing code to deal with the error logs in SIROCCO’s parallel mode. It basically sums the number of errors in the various diagnostic files

usage and arguments:

python py_error.py [-f folder] root root is the root name of parameter file -f folder is the folder the diagfiles are in, defaults to diag_root

returns:

Error summary printed to screen, and an astropy table root_error_sum.txt.

History:

1307 JM Coding began – initial tests conducted successfully 1802 ksl Updated to be python3 compatable, to write the results to an astropy table, and to be callable from another routine

Functions

doit(root[, diagfolder_name])

Given a root name for a parameter file and a location for the diag_folder then summarizes the errors for a python run and write the outputs to a file