acisops / acis_thermal_check

Thermal model prediction and validation for Chandra ACIS Operations
https://cxc.cfa.harvard.edu/acis/acis_thermal_check
0 stars 4 forks source link

Make regression testing work on standalone platforms #36

Closed taldcroft closed 3 years ago

taldcroft commented 3 years ago

Description

This allows regression testing to run on a standalone platform that has the ACIS load review data in $SKA/data/acis/LoadReviews/.

Testing

Functional testing

Mac

On my Mac, I installed this into a dev environment and then ran unit tests for dpa_check 3.0.0. I have sshfs set up so that $SKA/data/acis/LoadReviews reflects the correct content from HEAD /data/acis/LoadReviews.

$ export ALLOW_NONSTANDARD_OFLSDIR=1
$ ipython
import dpa_check
dpa_check.test()

All pass.

HEAD

This doesn't change anything on HEAD and tests from the dpa_check master branch pass as expected.

ska3-kady$ pwd
/home/aldcroft/git/acis_thermal_check
ska3-kady$ export PYTHONPATH=$PWD
ska3-kady$ cd ~/git/dpa_check
ska3-kady$ pytest -v dpa_check
==================================================================== test session starts ====================================================================
platform linux -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /proj/sot/ska3/flight/bin/python
cachedir: .pytest_cache
rootdir: /data/baffin/tom/git/dpa_check
collected 49 items                                                                                                                                          

dpa_check/tests/test_dpa_acis.py::test_prediction[MAR0617A] PASSED                                                                                    [  2%]
dpa_check/tests/test_dpa_acis.py::test_prediction[MAR2017E] PASSED                                                                                    [  4%]
dpa_check/tests/test_dpa_acis.py::test_prediction[JUL3117B] PASSED                                                                                    [  6%]
dpa_check/tests/test_dpa_acis.py::test_prediction[SEP0417A] PASSED                                                                                    [  8%]
dpa_check/tests/test_dpa_acis.py::test_prediction[MAR1517B] PASSED                                                                                    [ 10%]
dpa_check/tests/test_dpa_acis.py::test_prediction[JUL2717A] PASSED                                                                                    [ 12%]
dpa_check/tests/test_dpa_acis.py::test_prediction[AUG2517C] PASSED                                                                                    [ 14%]
dpa_check/tests/test_dpa_acis.py::test_prediction[AUG3017A] PASSED                                                                                    [ 16%]
dpa_check/tests/test_dpa_acis.py::test_prediction[MAR0817B] PASSED                                                                                    [ 18%]
dpa_check/tests/test_dpa_acis.py::test_prediction[MAR1117A] PASSED                                                                                    [ 20%]
dpa_check/tests/test_dpa_acis.py::test_prediction[APR0217B] PASSED                                                                                    [ 22%]
dpa_check/tests/test_dpa_acis.py::test_prediction[SEP0917C] PASSED                                                                                    [ 24%]
dpa_check/tests/test_dpa_acis.py::test_validation[MAR0617A] PASSED                                                                                    [ 26%]
dpa_check/tests/test_dpa_acis.py::test_validation[MAR2017E] PASSED                                                                                    [ 28%]
dpa_check/tests/test_dpa_acis.py::test_validation[JUL3117B] PASSED                                                                                    [ 30%]
dpa_check/tests/test_dpa_acis.py::test_validation[SEP0417A] PASSED                                                                                    [ 32%]
dpa_check/tests/test_dpa_acis.py::test_validation[MAR1517B] PASSED                                                                                    [ 34%]
dpa_check/tests/test_dpa_acis.py::test_validation[JUL2717A] PASSED                                                                                    [ 36%]
dpa_check/tests/test_dpa_acis.py::test_validation[AUG2517C] PASSED                                                                                    [ 38%]
dpa_check/tests/test_dpa_acis.py::test_validation[AUG3017A] PASSED                                                                                    [ 40%]
dpa_check/tests/test_dpa_acis.py::test_validation[MAR0817B] PASSED                                                                                    [ 42%]
dpa_check/tests/test_dpa_acis.py::test_validation[MAR1117A] PASSED                                                                                    [ 44%]
dpa_check/tests/test_dpa_acis.py::test_validation[APR0217B] PASSED                                                                                    [ 46%]
dpa_check/tests/test_dpa_acis.py::test_validation[SEP0917C] PASSED                                                                                    [ 48%]
dpa_check/tests/test_dpa_sql.py::test_prediction[MAR0617A] PASSED                                                                                     [ 51%]
dpa_check/tests/test_dpa_sql.py::test_prediction[MAR2017E] PASSED                                                                                     [ 53%]
dpa_check/tests/test_dpa_sql.py::test_prediction[JUL3117B] PASSED                                                                                     [ 55%]
dpa_check/tests/test_dpa_sql.py::test_prediction[SEP0417A] PASSED                                                                                     [ 57%]
dpa_check/tests/test_dpa_sql.py::test_prediction[MAR1517B] PASSED                                                                                     [ 59%]
dpa_check/tests/test_dpa_sql.py::test_prediction[JUL2717A] PASSED                                                                                     [ 61%]
dpa_check/tests/test_dpa_sql.py::test_prediction[AUG2517C] PASSED                                                                                     [ 63%]
dpa_check/tests/test_dpa_sql.py::test_prediction[AUG3017A] PASSED                                                                                     [ 65%]
dpa_check/tests/test_dpa_sql.py::test_prediction[MAR0817B] PASSED                                                                                     [ 67%]
dpa_check/tests/test_dpa_sql.py::test_prediction[MAR1117A] PASSED                                                                                     [ 69%]
dpa_check/tests/test_dpa_sql.py::test_prediction[APR0217B] PASSED                                                                                     [ 71%]
dpa_check/tests/test_dpa_sql.py::test_prediction[SEP0917C] PASSED                                                                                     [ 73%]
dpa_check/tests/test_dpa_sql.py::test_validation[MAR0617A] PASSED                                                                                     [ 75%]
dpa_check/tests/test_dpa_sql.py::test_validation[MAR2017E] PASSED                                                                                     [ 77%]
dpa_check/tests/test_dpa_sql.py::test_validation[JUL3117B] PASSED                                                                                     [ 79%]
dpa_check/tests/test_dpa_sql.py::test_validation[SEP0417A] PASSED                                                                                     [ 81%]
dpa_check/tests/test_dpa_sql.py::test_validation[MAR1517B] PASSED                                                                                     [ 83%]
dpa_check/tests/test_dpa_sql.py::test_validation[JUL2717A] PASSED                                                                                     [ 85%]
dpa_check/tests/test_dpa_sql.py::test_validation[AUG2517C] PASSED                                                                                     [ 87%]
dpa_check/tests/test_dpa_sql.py::test_validation[AUG3017A] PASSED                                                                                     [ 89%]
dpa_check/tests/test_dpa_sql.py::test_validation[MAR0817B] PASSED                                                                                     [ 91%]
dpa_check/tests/test_dpa_sql.py::test_validation[MAR1117A] PASSED                                                                                     [ 93%]
dpa_check/tests/test_dpa_sql.py::test_validation[APR0217B] PASSED                                                                                     [ 95%]
dpa_check/tests/test_dpa_sql.py::test_validation[SEP0917C] PASSED                                                                                     [ 97%]
dpa_check/tests/test_dpa_viols.py::test_JUL3018A_viols PASSED                                                                                         [100%]

============================================================== 49 passed in 688.15s (0:11:28) ===============================================================
jzuhone commented 3 years ago

@taldcroft sorry, I didn't see this until now. Merging.