@@ -570,15 +570,15 @@ def test_observations_get_product_list_async(self):
570
570
responses = Observations .get_product_list_async (test_obs [2 :3 ])
571
571
assert isinstance (responses , list )
572
572
573
- observations = Observations .query_object ( "M8" , radius = ".02 deg" )
573
+ observations = Observations .query_criteria ( objectname = "M8" , obs_collection = [ "K2" , "IUE" ] )
574
574
responses = Observations .get_product_list_async (observations [0 ])
575
575
assert isinstance (responses , list )
576
576
577
577
responses = Observations .get_product_list_async (observations [0 :4 ])
578
578
assert isinstance (responses , list )
579
579
580
580
def test_observations_get_product_list (self ):
581
- observations = Observations .query_object ( "M8" , radius = ".04 deg" )
581
+ observations = Observations .query_criteria ( objectname = 'M8' , obs_collection = [ 'K2' , 'IUE' ] )
582
582
test_obs_id = str (observations [0 ]['obsid' ])
583
583
mult_obs_ids = str (observations [0 ]['obsid' ]) + ',' + str (observations [1 ]['obsid' ])
584
584
@@ -598,7 +598,7 @@ def test_observations_get_product_list(self):
598
598
assert len (result1 ) == len (result2 )
599
599
assert set (filenames1 ) == set (filenames2 )
600
600
601
- obsLoc = np .where (observations [" obs_id" ] == 'ktwo200071160-c92_lc' )
601
+ obsLoc = np .where (observations [' obs_id' ] == 'ktwo200071160-c92_lc' )
602
602
result = Observations .get_product_list (observations [obsLoc ])
603
603
assert isinstance (result , Table )
604
604
assert len (result ) == 1
0 commit comments