Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
snbianco committed Aug 27, 2024
1 parent 6de6d7f commit ecde7c5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions astroquery/mast/tests/test_mast_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,19 +686,9 @@ def check_result(result, row, exp_values):
radius=0.01*u.deg, catalog="panstarrs",
table="mean")
row = np.where((result['objName'] == 'PSO J322.4622+12.1920') & (result['yFlags'] == 16777496))
second_id = result[1]['objID']
assert isinstance(result, Table)
np.testing.assert_allclose(result[row]['distance'], 0.039381703406789904)

result = Catalogs.query_region("322.49324 12.16683",
radius=0.01*u.deg, catalog="panstarrs",
table="mean",
pagesize=1,
page=2)
assert isinstance(result, Table)
assert len(result) == 1
assert second_id == result[0]['objID']

result = Catalogs.query_region("158.47924 -7.30962",
radius=in_radius,
catalog="Galex")
Expand All @@ -711,9 +701,19 @@ def check_result(result, row, exp_values):
radius=in_radius,
catalog="tic")
row = np.where(result['ID'] == '841736289')
second_id = result[1]['ID']
check_result(result, row, {'gaiaqflag': 1})
np.testing.assert_allclose(result[row]['RA_orig'], 158.475246786483)

result = Catalogs.query_region("158.47924 -7.30962",
radius=in_radius,
catalog="tic",
pagesize=1,
page=2)
assert isinstance(result, Table)
assert len(result) == 1
assert second_id == result[0]['ID']

result = Catalogs.query_region("158.47924 -7.30962",
radius=in_radius,
catalog="ctl")
Expand Down

0 comments on commit ecde7c5

Please sign in to comment.