def test_query_case_7(ds_setup, ds_datadir): datadir = ds_datadir stkname = '@' + '/'.join((datadir, 'pha.lis')) datastack.load_pha(stkname) f = datastack.query_by_header_keyword('INSTRUME', 'ACIS') assert f == [1, 2] f = datastack.query_by_obsid(7867) assert f == [2] ds = datastack.DataStack() ds.load_pha(stkname) f = ds.query_by_obsid('4938') assert f == [3] f = datastack.query_by_obsid(ds, '7867') assert f == [4]
def test_case_7(self): datastack.load_pha('@' + '/'.join((self._this_dir, 'data', 'pha.lis'))) f = datastack.query_by_header_keyword('INSTRUME', 'ACIS') assert f == [1, 2] f = datastack.query_by_obsid(7867) assert f == [2] ds = datastack.DataStack() ds.load_pha('@' + '/'.join((self._this_dir, 'data', 'pha.lis'))) f = ds.query_by_obsid('4938') assert f == [3] f = datastack.query_by_obsid(ds, '7867') assert f == [4]
def test_case_7(self): datastack.load_pha('@'+'/'.join((self._this_dir, 'data', 'pha.lis'))) f = datastack.query_by_header_keyword('INSTRUME', 'ACIS') assert f == [1,2] f = datastack.query_by_obsid('7867') assert f == [2] ds = datastack.DataStack() ds.load_pha('@'+'/'.join((self._this_dir, 'data', 'pha.lis'))) f = ds.query_by_obsid('4938') assert f == [3] f = datastack.query_by_obsid(ds, '7867') assert f == [4]