astro.util.darma.test package

Submodules

astro.util.darma.test.bitmask_test module

Unit test for DARMA bitmask

class astro.util.darma.test.bitmask_test.bitmask_load_empty_test(methodName='runTest')

Bases: unittest.case.TestCase

Are bitmasks loaded without data empty?

setUp()
tearDown()
test_load_empty()
class astro.util.darma.test.bitmask_test.bitmask_load_error_test(methodName='runTest')

Bases: unittest.case.TestCase

Do bitmasks loaded from bogus sources raise errors?

setUp()
tearDown()
test_load_error()
astro.util.darma.test.bitmask_test.build_test_data_empty()

This function builds dataless files to be used in testing

astro.util.darma.test.bitmask_test.build_test_data_mef()

This function builds MEF files to be used in testing

astro.util.darma.test.bitmask_test.build_test_data_one()

This function builds SEF files with all one data array to be used in testing

astro.util.darma.test.bitmask_test.build_test_data_sef()

This function builds SEF files to be used in testing

astro.util.darma.test.bitmask_test.build_test_data_zero()

This function builds SEF files with all zero data array to be used in testing

astro.util.darma.test.bitmask_test.delete_test_data()

This function deletes fits files used in testing

astro.util.darma.test.common_test module

Unit test for DARMA common

class astro.util.darma.test.common_test.common_statstruct_dump_test(methodName='runTest')

Bases: unittest.case.TestCase

Dump the StatStruct (alias for show).

setUp()
tearDown()
test_statstruct_dump()
class astro.util.darma.test.common_test.common_statstruct_load_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the loaded statistics structure consistent?

setUp()
tearDown()
test_statstruct_load()
class astro.util.darma.test.common_test.common_statstruct_show_test(methodName='runTest')

Bases: unittest.case.TestCase

Show the StatStruct.

setUp()
tearDown()
test_statstruct_show()
class astro.util.darma.test.common_test.common_version_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the underlying FITS handling library version consistent?

setUp()
tearDown()
test_array_version()
test_darma_version()

astro.util.darma.test.cube_test module

Unit test for DARMA cube

astro.util.darma.test.cube_test.build_test_data_empty()

This function builds dataless files to be used in testing

astro.util.darma.test.cube_test.build_test_data_mef()

This function builds MEF files to be used in testing

astro.util.darma.test.cube_test.build_test_data_one()

This function builds SEF files with all one data array to be used in testing

astro.util.darma.test.cube_test.build_test_data_sef()

This function builds SEF files to be used in testing

astro.util.darma.test.cube_test.build_test_data_zero()

This function builds SEF files with all zero data array to be used in testing

class astro.util.darma.test.cube_test.cube_load_empty_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cubes loaded without data empty?

setUp()
tearDown()
test_load_empty()
class astro.util.darma.test.cube_test.cube_load_error_test(methodName='runTest')

Bases: unittest.case.TestCase

Do cubes loaded from bogus sources raise errors?

setUp()
tearDown()
test_load_error()
astro.util.darma.test.cube_test.delete_test_data()

This function deletes fits files used in testing

astro.util.darma.test.header_test module

Unit test for DARMA header

astro.util.darma.test.header_test.build_test_data_ascii()

This function builds ASCII header files to be used in testing

astro.util.darma.test.header_test.build_test_data_mef()

This function builds MEF files to be used in testing

astro.util.darma.test.header_test.build_test_data_raw()

This function builds RAW header files to be used in testing

astro.util.darma.test.header_test.build_test_data_sef()

This function builds SEF files to be used in testing

astro.util.darma.test.header_test.delete_test_data()

This function deletes fits files used in testing

astro.util.darma.test.header_test.get_cardimage(card)
astro.util.darma.test.header_test.get_cardlist(hdr)
class astro.util.darma.test.header_test.header_creation_copy_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers copied correctly?

setUp()
tearDown()
test_creation_copy()
class astro.util.darma.test.header_test.header_creation_default_image_test(methodName='runTest')

Bases: unittest.case.TestCase

Are default extension headers created correctly?

setUp()
tearDown()
test_creation_default_image()
class astro.util.darma.test.header_test.header_creation_default_primary_test(methodName='runTest')

Bases: unittest.case.TestCase

Are default primary headers created correctly?

setUp()
tearDown()
test_creation_default_primary()
class astro.util.darma.test.header_test.header_creation_new_test(methodName='runTest')

Bases: unittest.case.TestCase

Are new headers created correctly?

setUp()
tearDown()
test_creation_new()
class astro.util.darma.test.header_test.header_delete_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers contents deleted properly?

setUp()
tearDown()
test_delete_dict()
class astro.util.darma.test.header_test.header_load_all_headers_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all headers able to be loaded from FITS files?

setUp()
tearDown()
test_load_all_headers()
class astro.util.darma.test.header_test.header_load_cardlist_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded from a list of fits.Card instances?

setUp()
tearDown()
test_load_cardlist_cards()
class astro.util.darma.test.header_test.header_load_cardlist_file_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded from ASCII files?

setUp()
tearDown()
test_load_cardlist_file()
class astro.util.darma.test.header_test.header_load_cardlist_strings_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded from a list string cards?

setUp()
tearDown()
test_load_cardlist_strings()
class astro.util.darma.test.header_test.header_load_cardlist_unicode_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded from a list of unicode cards?

setUp()
tearDown()
test_load_cardlist_unicode()
class astro.util.darma.test.header_test.header_load_empty_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers loaded without data empty?

setUp()
tearDown()
test_load_empty()
class astro.util.darma.test.header_test.header_load_error_test(methodName='runTest')

Bases: unittest.case.TestCase

Do headers loaded from bogus sources raise errors?

setUp()
tearDown()
test_load_error()
class astro.util.darma.test.header_test.header_load_filename_extensions_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded properly from MEFs?

setUp()
tearDown()
test_load_filename_extensions()
class astro.util.darma.test.header_test.header_load_filename_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be loaded properly from SEFs?

setUp()
tearDown()
test_load_filename()
class astro.util.darma.test.header_test.header_load_headers_cardlist_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all headers able to be loaded from fits.Cards instances via function?

setUp()
tearDown()
test_load_headers_cardlist_cards()
class astro.util.darma.test.header_test.header_load_headers_cardlist_file_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all headers able to be loaded from ASCII files via function?

setUp()
tearDown()
test_load_headers_cardlist_file()
class astro.util.darma.test.header_test.header_load_headers_cardlist_strings_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all headers able to be loaded from ASCII strings via function?

setUp()
tearDown()
test_load_headers_cardlist_strings()
class astro.util.darma.test.header_test.header_load_headers_filename_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all headers able to be loaded from FITS files via function?

setUp()
tearDown()
test_load_headers_filename()
class astro.util.darma.test.header_test.header_properties_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the “cards” property behaving properly?

setUp()
tearDown()
test_cards_property()
class astro.util.darma.test.header_test.header_properties_hdr_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the “hdr” property behaving properly?

setUp()
tearDown()
test_hdr_property()
class astro.util.darma.test.header_test.header_read_blank_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all BLANKs in the header read correctly?

setUp()
tearDown()
test_read_blank_cards()
class astro.util.darma.test.header_test.header_read_blanks_test(methodName='runTest')

Bases: unittest.case.TestCase

Are BLANK values in the header read correctly?

setUp()
tearDown()
test_read_blanks()
class astro.util.darma.test.header_test.header_read_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the set of cards in the header read correctly?

setUp()
tearDown()
test_read_cards()
class astro.util.darma.test.header_test.header_read_comment_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards stored in COMMENTs constructed correctly?

setUp()
tearDown()
test_read_comment_cards()
class astro.util.darma.test.header_test.header_read_comment_test(methodName='runTest')

Bases: unittest.case.TestCase

Are keyword comments in the header read correctly?

setUp()
tearDown()
test_read_comment()
class astro.util.darma.test.header_test.header_read_comment_values_test(methodName='runTest')

Bases: unittest.case.TestCase

is the list of comments in the header read correctly?

setUp()
tearDown()
test_read_comment_values()
class astro.util.darma.test.header_test.header_read_comments_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all COMMENTs in the header read correctly?

setUp()
tearDown()
test_read_comments()
class astro.util.darma.test.header_test.header_read_contents_test(methodName='runTest')

Bases: unittest.case.TestCase

Is what the header contains read correctly?

setUp()
tearDown()
test_read_contents()
class astro.util.darma.test.header_test.header_read_dump_test(methodName='runTest')

Bases: unittest.case.TestCase

Are values in the header dumped correctly?

setUp()
tearDown()
test_read_dump()
class astro.util.darma.test.header_test.header_read_fits_indexes_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are values in the header read from the dict correctly via index?

setUp()
tearDown()
test_read_fits_indexes_dict()
class astro.util.darma.test.header_test.header_read_fits_keywords_attr_test(methodName='runTest')

Bases: unittest.case.TestCase

Are values in the header read from attributes correctly?

setUp()
tearDown()
test_read_fits_keywords_attr()
class astro.util.darma.test.header_test.header_read_fits_keywords_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are values in the header read from the dict correctly?

setUp()
tearDown()
test_read_fits_keywords_dict()
class astro.util.darma.test.header_test.header_read_getval_test(methodName='runTest')

Bases: unittest.case.TestCase

Are values in a FITS file header read correctly?

setUp()
tearDown()
test_read_getval()
class astro.util.darma.test.header_test.header_read_hierarch_keywords_attr_test(methodName='runTest')

Bases: unittest.case.TestCase

Are HIERARCH values in the header read from attributes correctly?

setUp()
tearDown()
test_read_hierarch_keywords_attr()
class astro.util.darma.test.header_test.header_read_hierarch_keywords_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are HIERARCH values in the header read from the dict correctly?

setUp()
tearDown()
test_read_hierarch_keywords_dict()
class astro.util.darma.test.header_test.header_read_history_cards_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards stored in HISTORYs read correctly?

setUp()
tearDown()
test_read_history_cards()
class astro.util.darma.test.header_test.header_read_history_test(methodName='runTest')

Bases: unittest.case.TestCase

Are all HISTORYs in the header read correctly?

setUp()
tearDown()
test_read_history()
class astro.util.darma.test.header_test.header_read_info_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the header information conveyed correctly?

setUp()
tearDown()
test_read_info()
class astro.util.darma.test.header_test.header_read_items_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the list of items in the header read correctly?

setUp()
tearDown()
test_read_items()
class astro.util.darma.test.header_test.header_read_iterators_test(methodName='runTest')

Bases: unittest.case.TestCase

Are the iterators in the header formed correctly?

setUp()
tearDown()
test_read_iterators()
class astro.util.darma.test.header_test.header_read_keywords_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the list of keywords in the header read correctly?

setUp()
tearDown()
test_read_keywords()
class astro.util.darma.test.header_test.header_read_length_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the length of the header read correctly?

setUp()
tearDown()
test_read_length()
class astro.util.darma.test.header_test.header_read_representation_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the representation of the header conveyed correctly?

setUp()
tearDown()
test_read_representation()
class astro.util.darma.test.header_test.header_read_string_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the string casting of the header done correctly?

setUp()
tearDown()
test_read_string()
class astro.util.darma.test.header_test.header_read_value_test(methodName='runTest')

Bases: unittest.case.TestCase

Are keyword values in the header read correctly?

setUp()
tearDown()
test_read_value()
class astro.util.darma.test.header_test.header_read_values_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the list of values in the header read correctly?

setUp()
tearDown()
test_read_values()
class astro.util.darma.test.header_test.header_save_append_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be saved appending to an existing file?

setUp()
tearDown()
test_save_append()
class astro.util.darma.test.header_test.header_save_ascii_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be saved in ASCII format?

setUp()
tearDown()
test_save_ascii()
class astro.util.darma.test.header_test.header_save_clobber_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be saved overwriting existing files?

setUp()
tearDown()
test_save_clobber()
class astro.util.darma.test.header_test.header_save_dataless_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be saved in dataless format?

setUp()
tearDown()
test_save_dataless()
class astro.util.darma.test.header_test.header_save_raw_test(methodName='runTest')

Bases: unittest.case.TestCase

Are headers able to be saved in raw format without data?

setUp()
tearDown()
test_save_raw()
class astro.util.darma.test.header_test.header_verify_header_test(methodName='runTest')

Bases: unittest.case.TestCase

Are header contents verified properly?

setUp()
tearDown()
test_verify_header()
class astro.util.darma.test.header_test.header_version_test(methodName='runTest')

Bases: unittest.case.TestCase

Is the underlying FITS handling library version consistent?

setUp()
tearDown()
test_array_version()
test_darma_version()
class astro.util.darma.test.header_test.header_write_add_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards added to the header correctly?

setUp()
tearDown()
test_write_add()
class astro.util.darma.test.header_test.header_write_append_force_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards appended to the end of the header correctly?

setUp()
tearDown()
test_write_append()
class astro.util.darma.test.header_test.header_write_append_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards appended to the header correctly?

setUp()
tearDown()
test_write_append()
class astro.util.darma.test.header_test.header_write_blanks_test(methodName='runTest')

Bases: unittest.case.TestCase

Are BLANK cards written to the header correctly?

setUp()
tearDown()
test_write_blanks()
class astro.util.darma.test.header_test.header_write_comments_test(methodName='runTest')

Bases: unittest.case.TestCase

Are COMMENT cards written to the header correctly?

setUp()
tearDown()
test_write_comments()
class astro.util.darma.test.header_test.header_write_fits_keywords_attr_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards written to the header attribute correctly?

setUp()
tearDown()
test_write_fits_keywords_attr()
class astro.util.darma.test.header_test.header_write_fits_keywords_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards written to the header dict correctly?

setUp()
tearDown()
test_write_fits_keywords_dict()
class astro.util.darma.test.header_test.header_write_fromstring_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards appended from string to the header correctly?

setUp()
tearDown()
test_write_fromstring()
class astro.util.darma.test.header_test.header_write_hierarch_keywords_attr_test(methodName='runTest')

Bases: unittest.case.TestCase

Are HIERARCH cards written to the header attribute correctly?

setUp()
tearDown()
test_write_hierarch_keywords_attr()
class astro.util.darma.test.header_test.header_write_hierarch_keywords_dict_test(methodName='runTest')

Bases: unittest.case.TestCase

Are HIERARCH cards written to the header dict correctly?

setUp()
tearDown()
test_write_hierarch_keywords_dict()
class astro.util.darma.test.header_test.header_write_history_test(methodName='runTest')

Bases: unittest.case.TestCase

Are HISTORY cards written to the header correctly?

setUp()
tearDown()
test_write_history()
class astro.util.darma.test.header_test.header_write_merge_into_file_test(methodName='runTest')

Bases: unittest.case.TestCase

Is one header merged correctly into another in a file?

setUp()
tearDown()
test_write_merge_into_file()
class astro.util.darma.test.header_test.header_write_merge_test(methodName='runTest')

Bases: unittest.case.TestCase

Are two headers merged correctly?

setUp()
tearDown()
test_write_merge()
class astro.util.darma.test.header_test.header_write_modify_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards modified in the header correctly?

setUp()
tearDown()
test_write_modify()
class astro.util.darma.test.header_test.header_write_rename_key_test(methodName='runTest')

Bases: unittest.case.TestCase

Are keys renamed in the header correctly?

setUp()
tearDown()
test_write_rename_key()
class astro.util.darma.test.header_test.header_write_rename_keyword_test(methodName='runTest')

Bases: unittest.case.TestCase

Are keywords renamed in the header correctly?

setUp()
tearDown()
test_write_rename_keyword()
class astro.util.darma.test.header_test.header_write_update_test(methodName='runTest')

Bases: unittest.case.TestCase

Are cards updated in the header correctly?

setUp()
tearDown()
test_write_update()
astro.util.darma.test.header_test.update_header(hdr, keyword, value)

astro.util.darma.test.image_generator_test module

Unit test for DARMA image_generator

astro.util.darma.test.image_test module

Unit test for DARMA image

astro.util.darma.test.image_test.build_test_data_empty()

This function builds dataless files to be used in testing

astro.util.darma.test.image_test.build_test_data_mef()

This function builds MEF files to be used in testing

astro.util.darma.test.image_test.build_test_data_mef_cube()

This function builds MEF files to be used in testing

astro.util.darma.test.image_test.build_test_data_one()

This function builds SEF files with all one data array to be used in testing

astro.util.darma.test.image_test.build_test_data_sef()

This function builds SEF files to be used in testing

astro.util.darma.test.image_test.build_test_data_zero()

This function builds SEF files with all zero data array to be used in testing

astro.util.darma.test.image_test.delete_test_data()

This function deletes fits files used in testing

class astro.util.darma.test.image_test.image_load_empty_test(methodName='runTest')

Bases: unittest.case.TestCase

Are images loaded without data empty?

setUp()
tearDown()
test_load_empty()
class astro.util.darma.test.image_test.image_load_error_test(methodName='runTest')

Bases: unittest.case.TestCase

Do images loaded from bogus sources raise errors?

setUp()
tearDown()
test_load_error()

astro.util.darma.test.pixelmap_test module

Unit test for DARMA pixelmap

astro.util.darma.test.pixelmap_test.build_test_data_empty()

This function builds dataless files to be used in testing

astro.util.darma.test.pixelmap_test.build_test_data_mef()

This function builds MEF files to be used in testing

astro.util.darma.test.pixelmap_test.build_test_data_one()

This function builds SEF files with all one data array to be used in testing

astro.util.darma.test.pixelmap_test.build_test_data_sef()

This function builds SEF files to be used in testing

astro.util.darma.test.pixelmap_test.build_test_data_zero()

This function builds SEF files with all zero data array to be used in testing

astro.util.darma.test.pixelmap_test.delete_test_data()

This function deletes fits files used in testing

class astro.util.darma.test.pixelmap_test.pixelmap_load_empty_test(methodName='runTest')

Bases: unittest.case.TestCase

Are pixelmaps loaded without data empty?

setUp()
tearDown()
test_load_empty()
class astro.util.darma.test.pixelmap_test.pixelmap_load_error_test(methodName='runTest')

Bases: unittest.case.TestCase

Do pixelmaps loaded from bogus sources raise errors?

setUp()
tearDown()
test_load_error()

astro.util.darma.test.tables_test module

Unit test for DARMA tables

Module contents

Unittest module for DARMA