Skip to content

Commit 080a5ee

Browse files
nkphysicsbsipocz
authored andcommitted
Refactor: Made magpis kwargs keyword only
1 parent 4943abb commit 080a5ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/magpis/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MagpisClass(BaseQuery):
3333
"bolocam"]
3434
maximsize = 1024
3535

36-
def _args_to_payload(self, coordinates, image_size=1 * u.arcmin,
36+
def _args_to_payload(self, coordinates, *, image_size=1 * u.arcmin,
3737
survey='bolocam', maximsize=None):
3838
"""
3939
Fetches image cutouts from MAGPIS surveys.
@@ -71,7 +71,7 @@ def _args_to_payload(self, coordinates, image_size=1 * u.arcmin,
7171
return request_payload
7272

7373
@prepend_docstr_nosections("\n" + _args_to_payload.__doc__)
74-
def get_images(self, coordinates, image_size=1 * u.arcmin,
74+
def get_images(self, coordinates, *, image_size=1 * u.arcmin,
7575
survey='bolocam', get_query_payload=False):
7676
"""
7777
get_query_payload : bool, optional
@@ -94,7 +94,7 @@ def get_images(self, coordinates, image_size=1 * u.arcmin,
9494
raise InvalidQueryError(response.content)
9595

9696
@prepend_docstr_nosections("\n" + _args_to_payload.__doc__)
97-
def get_images_async(self, coordinates, image_size=1 * u.arcmin,
97+
def get_images_async(self, coordinates, *, image_size=1 * u.arcmin,
9898
survey='bolocam', get_query_payload=False):
9999
"""
100100
get_query_payload : bool, optional

0 commit comments

Comments
 (0)