regression_check

Compare two regression runs, highligting the differences between them

Command line usage (if any):

usage: regression_check.py [-h] run1 [run2]

where run1 and run2 are the names of two diretories where a standard set of regression tests have been run, and where -h prints out this message.

Description:

The routine checks various files in two regression direct to see how different the files are. The actual diffs (or the beginning of them anyway) are written to a file (check.txt by default).

If run1 and run2 are provided then these will be the two directories that are compared.

If only run1 is provided then the comparison will be makde between the run1 directory and the last run of the regression test, excluding run1.

The routine looks for all of the .out.pf files in the two directories, and compares them, and then makes comparisons of the .spec and .log_spec_tot files.

Primary routines:

doit

Notes:

History:

180810 ksl Coding begun

Functions

diff_two_files(file1, file2)

Report on the differences between two files

doit([run1, run2, outputfile])

Run the regression checks on two directories.

get_other_directory(run1)

Find a second directory.

read_file(filename[, char])

Read a file and split it into words, eliminating comments

read_table([filename, format])

Read a file using astropy.io.ascii and return this

steer(argv)

Parse the command line and set everything up