Skip to content
kslong edited this page May 29, 2017 · 2 revisions

Regression test

An elementary way to test the S/W the first time it is used, or to regression test the data if one makes changes to the S/W can be made by retrieving and unpacking the file z.Regress...gz from here

Automated procedure

The regression test can be carried out with the script regress.py (once you have the persistence S/W setup

Simply run

regress.py

in an astroconda environment from the Regress directory

This will carry out the regression test in a directory named by today's date, e.g. 170529

To execute the procedure in another directory, one would say

regress.py my_favorite_directory

By hand

Alternatively one can carry out the procedure from the command line:

Create a directory, e.g Test130826

In that directory, create a symbolic link to the data directory, e.g ln -s ../D.130618 D

Then issues the following commands

per_list.py

run_persist.py -all -local

Note - Do not run without the local switch (unless you want the results to appear underneath the data directory. Usually this is not what you want since then you will overwrite the Persist information the next time the program is run and this is supposed to be a regression test.

Then run

subtract_sum.py

Evaluate the results

Display a few of the files and compare them, e.g

ds9 Persist/ia21h2e9q_flt_cor.fits D/11189/VisitH2/ia21h2e9q_flt.fits

This will put the first file in frame 1 and the second 1 in frame 2

Also inspect

Persist/ia21h2e9q_persist.html

Clone this wiki locally