Ejemplo n.º 1
0
 def test_has_image_data_mixed_cat(self):
     """ Check catalog extension of mixed image/cat file for image data. """
     with fits.open(self.hh_tstfyl) as hdus:
         assert utils.has_image_data(hdus, which_hdu=1) is False
Ejemplo n.º 2
0
 def test_has_image_data_mixed(self):
     """ Check primary (default) of mixed image/cat file for image data. """
     with fits.open(self.hh_tstfyl) as hdus:
         assert utils.has_image_data(hdus) is True
Ejemplo n.º 3
0
 def test_has_image_data_good(self):
     """ Check primary of image file for image data. """
     with fits.open(self.m13_tstfyl) as hdus:
         assert utils.has_image_data(hdus) is True
Ejemplo n.º 4
0
 def test_has_image_data_bad_high_hdu(self):
     """ Check non-existant extension of image file for image data. """
     with fits.open(self.m13_tstfyl) as hdus:
         assert utils.has_image_data(hdus, which_hdu=1) is False
Ejemplo n.º 5
0
 def test_has_image_data(self):
     """ Check primary of catalog file for image data. """
     with fits.open(self.table_tstfyl) as hdus:
         assert utils.has_image_data(hdus) is False