def check_consistency(self):
    'Consistency checks between multiple HDUs'
    obs_table_obs_id = set(self.data_store.obs_table['OBS_ID'])
    hdu_table_obs_id = set(self.data_store.hdu_table['OBS_ID'])
    if (not (obs_table_obs_id == hdu_table_obs_id)):
        (yield {'level': 'error', 'msg': 'Inconsistent OBS_ID in obs and HDU index tables'})
Consistency checks between multiple HDUs
def check_consistency(self):
    
    obs_table_obs_id = set(self.data_store.obs_table['OBS_ID'])
    hdu_table_obs_id = set(self.data_store.hdu_table['OBS_ID'])
    if (not (obs_table_obs_id == hdu_table_obs_id)):
        (yield {'level': 'error', 'msg': 'Inconsistent OBS_ID in obs and HDU index tables'})