Skip to content

Commit 5780b99

Browse files
committed
unit test for panstarrs query with columns and sort_by specified
1 parent d6f0290 commit 5780b99

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

astroquery/mast/tests/test_mast_remote.py

+11
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,17 @@ def test_catalogs_query_criteria(self):
691691
assert isinstance(result, Table)
692692
assert 'PSO J254.2861-04.1091' in result['objName']
693693

694+
result = mast.Catalogs.query_criteria(coordinates="158.47924 -7.30962",
695+
radius=0.01,
696+
catalog="PANSTARRS",
697+
table="mean",
698+
data_release="dr2",
699+
nStackDetections=[("gte", "1")],
700+
columns=["objName", "distance"],
701+
sort_by=[("asc", "distance")])
702+
assert isinstance(result, Table)
703+
assert result['distance'][0] <= result['distance'][1]
704+
694705
def test_catalogs_query_hsc_matchid_async(self):
695706
catalogData = mast.Catalogs.query_object("M10",
696707
radius=.001,

0 commit comments

Comments
 (0)