--- Dependency check [begin] --- --- Dependency check [end] --- --- Distribution check [begin] --- Version 1.0 - 2021-11-03 (AG) Information: this ChangeLog entry matches the version number: Version 1.0 - 2021-11-03 (AG) Information: ./config/pyomdrifthist.par is an XML parameter file, I cannot yet validate it. Skipped. Warning: pyomdrifthist - missing lyt files. Now checking git repository... --- Distribution check [end] --- sed -e "s/DOC/pyomdrifthist/" -e "s/TYPE/user/" < \ /sasbuild/build/sas_20240619/packages/sas/doc/lib/package.tex | /sasbuild/build/sas_20240619/packages/sas/bin/texcombine | \ /sasbuild/build/sas_20240619/packages/sas/bin/fixdoc -type=user pyomdrifthist 1.0 pyomdrifthist 21.0.1-6e28bb166-20240619 > pyomdrifthist.tex including sasuser... including sasglobal... including pyomdrifthist_description... latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) bibtex pyomdrifthist < /dev/null > makedoc.log make[5]: [/sasbuild/build/sas_20240619/Make.include:1062: pyomdrifthist.ps.gz] Error 2 (ignored) latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) dvips -o pyomdrifthist.ps pyomdrifthist > makedoc.log 2>&1 || ( cat makedoc.log ; exit 1 ) dvipdf pyomdrifthist > makedoc.log 2>&1 || ( cat makedoc.log ; continue ) gzip -f pyomdrifthist.ps SASRELDIR=../../.. ;\ export SASRELDIR ;\ latex2html -nouse_pdftex -init_file /sasbuild/build/sas_20240619/packages/sas/doc/lib/latex2html.init pyomdrifthist > /dev/null texexpand V2020 (Released January 1, 2020) Warning: No implementation found for option: `version' for `sasdoc' package Warning: No implementation found for option: `version' for `sasdoc' package This is dvips(k) 2021.1 (TeX Live 2022/dev) Copyright 2021 Radical Eye Software (www.radicaleye.com) ' TeX output 2024.06.19:1622' -> images.ps . [1] [2] [3] /usr/bin/echo "" mkpkgidx -t . > /dev/null || (rm -f pyomdrifthist/index.pl ; exit 1) pointer=pyomdrifthist/ChangeLog ; \ target=../../../packages/pyomdrifthist/ChangeLog ; \ if [ -f $target -a \( ! -h $pointer \) ] ; then \ ln -s ../$target $pointer ; \ fi rm pyomdrifthist.tex Testing testpyomdrifthist ... FAILED Message: will run ./testpyomdrifthist for no longer than 600 seconds. ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.2, pluggy-1.5.0 -- /sasbuild/tools/python-3.10.6/bin/python3 cachedir: .pytest_cache rootdir: /sasbuild/build/sas_20240619/packages/pyomdrifthist plugins: anyio-4.4.0 collecting ... collected 8 items pyomdrifthist_test.py::test_euclid_modulus PASSED [ 12%] pyomdrifthist_test.py::test_get_platescale FAILED [ 25%] pyomdrifthist_test.py::test_get_more_recent_ccf FAILED [ 37%] pyomdrifthist_test.py::test_evaluate_zerodrift PASSED [ 50%] pyomdrifthist_test.py::test_general_png FAILED [ 62%] pyomdrifthist_test.py::test_general_pdf FAILED [ 75%] pyomdrifthist_test.py::test_general1pdf FAILED [ 87%] pyomdrifthist_test.py::test_general2pdf FAILED [100%] =================================== FAILURES =================================== _____________________________ test_get_platescale ______________________________ def test_get_platescale(): > pltscl = pyomdrifthist.get_platescale('U') pyomdrifthist_test.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:167: in get_platescale latest_ccf = get_more_recent_ccf(om_ccf_list) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError ------------------------------ Captured log call ------------------------------- DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/pub', '/ccf/priv/rt', '/ccf/priv/validation', '/sasbuild/build/sas_20240619/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/pub does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/validation does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /sasbuild/build/sas_20240619/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: [] ___________________________ test_get_more_recent_ccf ___________________________ def test_get_more_recent_ccf(): list_ccf = os.environ['SAS_CCFPATH'] list_ccf = list_ccf + ':/ccf/valid' folders = list_ccf.split(':') om_ccf_list = [] for folder in folders: try: om_ccf_file = os.path.abspath(glob.glob(folder + '/OM_ASTR*')[0]) except IndexError: continue om_ccf_list.append(om_ccf_file) > latest_ccf = pyomdrifthist.get_more_recent_ccf(om_ccf_list) pyomdrifthist_test.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError _______________________________ test_general_png _______________________________ def test_general_png(): dict_values = dict() dict_values.update({'set' : 'test_omdrift.fits'}) dict_values.update({'pages' : '1,2'}) dict_values.update({'plotfile' : 'test_plot.PNG'}) dict_values.update({'nbins' : 50}) dict_values.update({'trackradius' : 0.5}) > pyomdrifthist.run(dict_values) pyomdrifthist_test.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:526: in run platescale = get_platescale(filt) ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:167: in get_platescale latest_ccf = get_more_recent_ccf(om_ccf_list) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError ----------------------------- Captured stderr call ----------------------------- omdrifthist - WARNING - Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': 'test_plot.PNG', 'nbins': 50, 'trackradius': 0.5} ------------------------------ Captured log call ------------------------------- WARNING omdrifthist:logger.py:158 Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': 'test_plot.PNG', 'nbins': 50, 'trackradius': 0.5} DEBUG omdrifthist:logger.py:158 Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot.PNG DEBUG omdrifthist:logger.py:158 Working with /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot.PNG DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/pub', '/ccf/priv/rt', '/ccf/priv/validation', '/sasbuild/build/sas_20240619/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/pub does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/validation does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /sasbuild/build/sas_20240619/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: [] _______________________________ test_general_pdf _______________________________ def test_general_pdf(): dict_values = dict() dict_values.update({'set' : 'test_omdrift.fits'}) dict_values.update({'pages' : '1,2'}) dict_values.update({'plotfile' : './more/plot1.PDF'}) dict_values.update({'nbins' : 50}) dict_values.update({'trackradius' : 0.5}) > pyomdrifthist.run(dict_values) pyomdrifthist_test.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:526: in run platescale = get_platescale(filt) ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:167: in get_platescale latest_ccf = get_more_recent_ccf(om_ccf_list) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError ----------------------------- Captured stderr call ----------------------------- omdrifthist - WARNING - Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': './more/plot1.PDF', 'nbins': 50, 'trackradius': 0.5} ------------------------------ Captured log call ------------------------------- WARNING omdrifthist:logger.py:158 Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': './more/plot1.PDF', 'nbins': 50, 'trackradius': 0.5} DEBUG omdrifthist:logger.py:158 Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/more/plot1.PDF DEBUG omdrifthist:logger.py:158 Working with /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/more/plot1.PDF DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/pub', '/ccf/priv/rt', '/ccf/priv/validation', '/sasbuild/build/sas_20240619/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/pub does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/validation does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /sasbuild/build/sas_20240619/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: [] _______________________________ test_general1pdf _______________________________ def test_general1pdf(): dict_values = dict() dict_values.update({'set' : 'test_omdrift.fits'}) dict_values.update({'pages' : '1'}) dict_values.update({'plotfile' : 'test_plot1'}) dict_values.update({'nbins' : 50}) dict_values.update({'trackradius' : 0.5}) > pyomdrifthist.run(dict_values) pyomdrifthist_test.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:526: in run platescale = get_platescale(filt) ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:167: in get_platescale latest_ccf = get_more_recent_ccf(om_ccf_list) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError ----------------------------- Captured stderr call ----------------------------- omdrifthist - WARNING - Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1', 'plotfile': 'test_plot1', 'nbins': 50, 'trackradius': 0.5} omdrifthist - WARNING - Format not found in the plotfile parameter. Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot1.pdf as default. ------------------------------ Captured log call ------------------------------- WARNING omdrifthist:logger.py:158 Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1', 'plotfile': 'test_plot1', 'nbins': 50, 'trackradius': 0.5} WARNING omdrifthist:logger.py:158 Format not found in the plotfile parameter. Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot1.pdf as default. DEBUG omdrifthist:logger.py:158 Working with /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot1.pdf DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/pub', '/ccf/priv/rt', '/ccf/priv/validation', '/sasbuild/build/sas_20240619/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/pub does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/validation does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /sasbuild/build/sas_20240619/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: [] _______________________________ test_general2pdf _______________________________ def test_general2pdf(): dict_values = dict() dict_values.update({'set' : 'test_omdrift.fits'}) dict_values.update({'pages' : '2'}) dict_values.update({'plotfile' : './test_plot2'}) dict_values.update({'nbins' : 50}) dict_values.update({'trackradius' : 0.5}) > pyomdrifthist.run(dict_values) pyomdrifthist_test.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:526: in run platescale = get_platescale(filt) ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:167: in get_platescale latest_ccf = get_more_recent_ccf(om_ccf_list) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ abspaths = [] def get_more_recent_ccf(abspaths): """ Returns the absolute path of the most recent CCF file. Args: abspaths: the absolute path of the files to evaluate. Output: the absolute path of the most recent file. """ maxn = 0 for f in abspaths: f_aux = os.path.basename(f) num = int(re.search(r'\d+', f_aux).group(0)) if num > maxn: maxn = num maxf = f > return maxf E UnboundLocalError: local variable 'maxf' referenced before assignment ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:125: UnboundLocalError ----------------------------- Captured stderr call ----------------------------- omdrifthist - WARNING - Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '2', 'plotfile': './test_plot2', 'nbins': 50, 'trackradius': 0.5} omdrifthist - WARNING - Format not found in the plotfile parameter. Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot2.pdf as default. ------------------------------ Captured log call ------------------------------- WARNING omdrifthist:logger.py:158 Executing /sasbuild/build/sas_20240619/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '2', 'plotfile': './test_plot2', 'nbins': 50, 'trackradius': 0.5} WARNING omdrifthist:logger.py:158 Format not found in the plotfile parameter. Using /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot2.pdf as default. DEBUG omdrifthist:logger.py:158 Working with /sasbuild/build/sas_20240619/packages/pyomdrifthist/test/test_plot2.pdf DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/pub', '/ccf/priv/rt', '/ccf/priv/validation', '/sasbuild/build/sas_20240619/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/pub does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/validation does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /sasbuild/build/sas_20240619/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: [] =========================== short test summary info ============================ FAILED pyomdrifthist_test.py::test_get_platescale - UnboundLocalError: local ... FAILED pyomdrifthist_test.py::test_get_more_recent_ccf - UnboundLocalError: l... FAILED pyomdrifthist_test.py::test_general_png - UnboundLocalError: local var... FAILED pyomdrifthist_test.py::test_general_pdf - UnboundLocalError: local var... FAILED pyomdrifthist_test.py::test_general1pdf - UnboundLocalError: local var... FAILED pyomdrifthist_test.py::test_general2pdf - UnboundLocalError: local var... ========================= 6 failed, 2 passed in 3.18s ========================== Error while running ./testpyomdrifthist ERROR: one of the tests failed