Skip to content

Commit

Permalink
Comment out files for debug, remove deprecated code, add --slow to co…
Browse files Browse the repository at this point in the history
…mments
  • Loading branch information
mdlpstsci committed Jul 10, 2023
1 parent 732430a commit 6443574
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions tests/hap/test_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TestAlignMosaic(BaseHLATest):
is stored. The full path is TEST_BIGDATA plus the path components provided
in the get_bigdata() invocation. This test file can be executed in the following
manner:
$ pytest -s --bigdata test_align.py >& test_align_output.txt &
$ pytest -s --bigdata --slow test_align.py >& test_align_output.txt &
$ tail -f test_align_output.txt
"""
Expand Down Expand Up @@ -126,6 +126,8 @@ def test_align_47tuc(self):
assert 0.0 < total_rms <= RMS_LIMIT


"""
Test for j8ura1j* needs to be debugged.
@pytest.mark.parametrize("input_filenames", [['j8ura1j1q_flt.fits', 'j8ura1j2q_flt.fits',
'j8ura1j4q_flt.fits', 'j8ura1j6q_flt.fits',
'j8ura1j7q_flt.fits', 'j8ura1j8q_flt.fits',
Expand All @@ -148,6 +150,21 @@ def test_align_47tuc(self):
'ibnh02c7q_flc.fits', 'ibnh02c5q_flc.fits',
'ibnh02cpq_flc.fits', 'ibnh02c9q_flc.fits',
'ibnh02bfq_flc.fits', 'ibnh02beq_flc.fits']])
"""
@pytest.mark.parametrize("input_filenames", [ ['j92c01b4q_flc.fits', 'j92c01b5q_flc.fits',
'j92c01b7q_flc.fits', 'j92c01b9q_flc.fits'],
['jbqf02gzq_flc.fits', 'jbqf02h5q_flc.fits',
'jbqf02h7q_flc.fits', 'jbqf02hdq_flc.fits',
'jbqf02hjq_flc.fits', 'jbqf02hoq_flc.fits',
'jbqf02hqq_flc.fits', 'jbqf02hxq_flc.fits',
'jbqf02i3q_flc.fits', 'jbqf02i8q_flc.fits',
'jbqf02iaq_flc.fits'],
['ib2u12kaq_flt.fits', 'ib2u12keq_flt.fits',
'ib2u12kiq_flt.fits', 'ib2u12klq_flt.fits'],
['ibnh02coq_flc.fits', 'ibnh02cmq_flc.fits',
'ibnh02c7q_flc.fits', 'ibnh02c5q_flc.fits',
'ibnh02cpq_flc.fits', 'ibnh02c9q_flc.fits',
'ibnh02bfq_flc.fits', 'ibnh02beq_flc.fits']])
@pytest.mark.slow
def test_align_single_visits(self, input_filenames):
""" Verify whether single-visit exposures can be aligned to an astrometric standard.
Expand Down Expand Up @@ -242,24 +259,3 @@ def test_align_fail_single_visit(self):

assert 0.0 < total_rms <= RMS_LIMIT

pytest.skip("Skipping the test to validate the use of the astroquery functionality.", allow_module_level=True)
def test_astroquery(self):
"""Verify that new astroquery interface will work"""

total_rms = 0.01

dataset_table = alignimages.perform_align(['IB6V06060'],
catalog_list=['GAIADR2', 'GAIADR1'],
num_sources=250,
archive=False, clobber=True,
debug=False, update_hdr_wcs=False,
print_fit_parameters=True, print_git_info=False,
product_type='pipeline',
output=False)

# Examine the output table to extract the RMS for the entire fit and the compromised
# information
if dataset_table:
total_rms = dataset_table.filtered_table['total_rms'][0]

assert 0.0 < total_rms <= RMS_LIMIT

0 comments on commit 6443574

Please sign in to comment.