Skip to content

Commit ba1a647

Browse files
nkphysicsbsipocz
authored andcommitted
Refactor: Made imcce kwargs keyword only and updated docs
1 parent bfc49a3 commit ba1a647

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

astroquery/imcce/core.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def uri(self):
3636
"""
3737
return self._query_uri
3838

39-
def get_ephemerides_async(self, targetname, objtype='asteroid',
39+
def get_ephemerides_async(self, targetname, *, objtype='asteroid',
4040
epoch=None, epoch_step='1d', epoch_nsteps=1,
4141
location=500, coordtype=1,
4242
timescale='UTC',
@@ -276,7 +276,7 @@ def get_ephemerides_async(self, targetname, objtype='asteroid',
276276

277277
return response
278278

279-
def _parse_result(self, response, verbose=None):
279+
def _parse_result(self, response, *, verbose=None):
280280
"""
281281
Parser for Miriade request results
282282
"""
@@ -426,6 +426,7 @@ def cone_search_async(self,
426426
coo,
427427
rad,
428428
epoch,
429+
*,
429430
location='500',
430431
position_error=120,
431432
find_planets=True,
@@ -614,7 +615,7 @@ def cone_search_async(self,
614615

615616
return response
616617

617-
def _parse_result(self, response, verbose=False):
618+
def _parse_result(self, response, *, verbose=False):
618619
"""
619620
internal wrapper to parse queries
620621
"""

docs/imcce/imcce.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ looks like this:
3838
>>> field = SkyCoord(0*u.deg, 0*u.deg)
3939
>>> epoch = Time('2019-05-29 21:42', format='iso')
4040
>>> results = Skybot.cone_search(field, 5*u.arcmin, epoch)
41-
>>> results.pprint(max_width=80)
41+
>>> results.pprint(max_width=80) # doctest: +IGNORE_OUTPUT
4242
Number Name RA ... vy vz epoch
4343
deg ... AU / d AU / d d
4444
------ ---------- -------------------- ... ----------- ----------- ---------

0 commit comments

Comments
 (0)