def test_tagger_empty_no_images(): ob = numina.core.ObservationResult() tags = tagger_empty(ob) assert tags == {}
def test_tagger_empty(): img1 = fits.PrimaryHDU(data=[1, 2, 3], header=fits.Header()) img1.header['FILTER'] = 'FILTER-A' img1.header['READM'] = 'MOD1' frame1 = numina.core.DataFrame(frame=fits.HDUList(img1)) ob = numina.core.ObservationResult() ob.frames = [frame1] tags = tagger_empty(ob) assert tags == {}