Skip to content

Commit cc11223

Browse files
syed-gilanibsipocz
authored andcommitted
fixed indentation and updated doc string
1 parent 9d13269 commit cc11223

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

astroquery/mast/missions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class MissionsMastClass(MastQueryWithLogin):
2727
Class that allows direct programatic access to the MAST search API for a given mission.
2828
"""
2929

30-
def __init__(self):
30+
def __init__(self, mission='hst', service='search'):
3131
super().__init__()
3232

3333
self._search_option_fields = ['limit', 'offset', 'sort_by', 'search_key', 'sort_desc', 'select_cols',
3434
'skip_count', 'user_fields']
35-
self.service = 'search'
36-
self.mission = 'hst'
35+
self.service = service
36+
self.mission = mission
3737

3838
service_dict = {self.service: {'path': self.service, 'args': {}}}
3939
self._service_api_connection.set_service_params(service_dict, f"{self.service}/{self.mission}")

astroquery/mast/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def service_request_async(self, service, params, page_size=None, page=None, use_
245245
Can be used to override the default behavior of all results being returned to obtain
246246
a specific page of results.
247247
use_json: bool, optional
248-
if True, parameters don't need to be built
248+
if True, params are directly passed as json object
249249
**kwargs :
250250
See Catalogs.MAST properties in documentation referenced above
251251

astroquery/mast/tests/test_mast.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,17 @@ def test_missions_query_criteria_async(patch_post):
212212
obs_type = {'sci_obs_type': 'all'}
213213
aec = {'sci_aec': 'S'}
214214
responses = mast.MissionsMast.query_criteria_async(coordinates=regionCoords,
215-
radius=3,
216-
conditions=[pep_id,
217-
obs_type,
218-
instruments,
219-
datasets,
220-
pi_lname,
221-
spec_1234,
222-
release_date,
223-
start_time,
224-
obs_type,
225-
aec])
215+
radius=3,
216+
conditions=[pep_id,
217+
obs_type,
218+
instruments,
219+
datasets,
220+
pi_lname,
221+
spec_1234,
222+
release_date,
223+
start_time,
224+
obs_type,
225+
aec])
226226
assert isinstance(responses, MockResponse)
227227

228228

0 commit comments

Comments
 (0)