Skip to content

Commit 92b4f53

Browse files
committed
MAINT: making optional kwargs keyword only for skyview
1 parent 0c0285c commit 92b4f53

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

astroquery/skyview/core.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _submit_form(self, input=None, cache=True):
8585
response.raise_for_status()
8686
return response
8787

88-
def get_images(self, position, survey, coordinates=None, projection=None,
88+
def get_images(self, position, survey, *, coordinates=None, projection=None,
8989
pixels=None, scaling=None, sampler=None, resolver=None,
9090
deedger=None, lut=None, grid=None, gridlabels=None,
9191
radius=None, height=None, width=None, cache=True,
@@ -198,18 +198,16 @@ def get_images(self, position, survey, coordinates=None, projection=None,
198198
A list of `~astropy.io.fits.HDUList` objects.
199199
200200
"""
201-
readable_objects = self.get_images_async(position, survey, coordinates,
202-
projection, pixels, scaling,
203-
sampler, resolver, deedger,
204-
lut, grid, gridlabels,
205-
radius=radius, height=height,
206-
width=width,
207-
cache=cache,
208-
show_progress=show_progress)
201+
readable_objects = self.get_images_async(position, survey, coordinates=coordinates,
202+
projection=projection, pixels=pixels, scaling=scaling,
203+
sampler=sampler, resolver=resolver, deedger=deedger,
204+
lut=lut, grid=grid, gridlabels=gridlabels,
205+
radius=radius, height=height, width=width,
206+
cache=cache, show_progress=show_progress)
209207
return [obj.get_fits() for obj in readable_objects]
210208

211209
@prepend_docstr_nosections(get_images.__doc__)
212-
def get_images_async(self, position, survey, coordinates=None,
210+
def get_images_async(self, position, survey, *, coordinates=None,
213211
projection=None, pixels=None, scaling=None,
214212
sampler=None, resolver=None, deedger=None, lut=None,
215213
grid=None, gridlabels=None, radius=None, height=None,
@@ -219,18 +217,18 @@ def get_images_async(self, position, survey, coordinates=None,
219217
-------
220218
A list of context-managers that yield readable file-like objects
221219
"""
222-
image_urls = self.get_image_list(position, survey, coordinates,
223-
projection, pixels, scaling, sampler,
224-
resolver, deedger, lut, grid,
225-
gridlabels, radius=radius,
220+
image_urls = self.get_image_list(position, survey, coordinates=coordinates,
221+
projection=projection, pixels=pixels, scaling=scaling, sampler=sampler,
222+
resolver=resolver, deedger=deedger, lut=lut, grid=grid,
223+
gridlabels=gridlabels, radius=radius,
226224
height=height, width=width,
227225
cache=cache)
228226
return [commons.FileContainer(url, encoding='binary',
229227
show_progress=show_progress)
230228
for url in image_urls]
231229

232230
@prepend_docstr_nosections(get_images.__doc__, sections=['Returns', 'Examples'])
233-
def get_image_list(self, position, survey, coordinates=None,
231+
def get_image_list(self, position, survey, *, coordinates=None,
234232
projection=None, pixels=None, scaling=None,
235233
sampler=None, resolver=None, deedger=None, lut=None,
236234
grid=None, gridlabels=None, radius=None, width=None,

0 commit comments

Comments
 (0)