1
1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2
2
3
+ from typing import Union
3
4
import warnings
4
5
from io import StringIO , BytesIO
5
6
from astropy .table import Table
@@ -86,8 +87,10 @@ def query_mission_cols(self, mission, cache=True, get_query_payload=False,
86
87
All other parameters have no effect
87
88
"""
88
89
89
- response = self .query_region_async (position = '0.0 0.0' , mission = mission ,
90
- radius = '361 degree' , cache = cache ,
90
+ response = self .query_region_async (position = coordinates .SkyCoord (0.0 , 0.0 , unit = 'deg' ),
91
+ mission = mission ,
92
+ radius = '361 degree' ,
93
+ cache = cache ,
91
94
get_query_payload = get_query_payload ,
92
95
resultsmax = 1 ,
93
96
fields = 'All' )
@@ -127,8 +130,8 @@ def query_object_async(self, object_name, mission,
127
130
128
131
return self .query_async (request_payload , cache = cache )
129
132
130
- def query_region_async (self , position , mission , radius ,
131
- cache = True , get_query_payload = False ,
133
+ def query_region_async (self , position : Union [ coordinates . SkyCoord , str ] ,
134
+ mission , radius , cache = True , get_query_payload = False ,
132
135
** kwargs ):
133
136
"""
134
137
Query around specific set of coordinates within a given mission
@@ -138,7 +141,7 @@ def query_region_async(self, position, mission, radius,
138
141
139
142
Parameters
140
143
----------
141
- position : `astropy.coordinates` or str
144
+ position : `astropy.coordinates.SkyCoord ` or str
142
145
The position around which to search. It may be specified as a
143
146
string in which case it is resolved using online services or as
144
147
the appropriate `astropy.coordinates` object. ICRS coordinates
0 commit comments