punchbowl.level1.tests.test_vignette#

Attributes#

Functions#

test_check_calibration_time_delta_warning(→ None)

If the time between the data of interest and the calibration file is too great, then a warning is raised.

test_no_vignetting_file(→ None)

An invalid vignetting file should be provided. Check that an error is raised.

test_invalid_vignetting_file(→ None)

An invalid vignetting file should be provided. Check that an error is raised.

test_invalid_polarization_state(→ None)

Check that a mismatch between polarization states in the vignetting function and data raises an error.

test_invalid_telescope(→ None)

Check that a mismatch between telescopes in the vignetting function and data raises an error.

test_invalid_data_file(→ None)

An invalid vignetting file should be provided. Check that an error is raised.

test_vignetting_correction(→ None)

A valid vignetting file should be provided. Check that a corrected PUNCHData object is generated.

test_generate_vignetting_calibration_wfi(→ None)

Test that vignetting calibration data is generated

test_generate_vignetting_calibration_nfi(→ None)

Test that vignetting calibration data is generated

Module Contents#

punchbowl.level1.tests.test_vignette.THIS_DIRECTORY#
punchbowl.level1.tests.test_vignette.test_check_calibration_time_delta_warning(sample_ndcube) None#

If the time between the data of interest and the calibration file is too great, then a warning is raised.

punchbowl.level1.tests.test_vignette.test_no_vignetting_file(sample_ndcube) None#

An invalid vignetting file should be provided. Check that an error is raised.

punchbowl.level1.tests.test_vignette.test_invalid_vignetting_file(sample_ndcube) None#

An invalid vignetting file should be provided. Check that an error is raised.

punchbowl.level1.tests.test_vignette.test_invalid_polarization_state(sample_ndcube) None#

Check that a mismatch between polarization states in the vignetting function and data raises an error.

punchbowl.level1.tests.test_vignette.test_invalid_telescope(sample_ndcube) None#

Check that a mismatch between telescopes in the vignetting function and data raises an error.

punchbowl.level1.tests.test_vignette.test_invalid_data_file(sample_ndcube) None#

An invalid vignetting file should be provided. Check that an error is raised.

punchbowl.level1.tests.test_vignette.test_vignetting_correction(sample_ndcube) None#

A valid vignetting file should be provided. Check that a corrected PUNCHData object is generated.

punchbowl.level1.tests.test_vignette.test_generate_vignetting_calibration_wfi() None#

Test that vignetting calibration data is generated

punchbowl.level1.tests.test_vignette.test_generate_vignetting_calibration_nfi() None#

Test that vignetting calibration data is generated