Skip to content

Commit 766a4fc

Browse files
authored
Merge pull request #2656 from nkphysics/nvas-kwarg-refactor
Refactor: Made NVAS optional kwargs keyword only
2 parents 4b29a35 + 957aca4 commit 766a4fc

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ nist
150150

151151
- Optional parameters in all methods are kwargs keyword only. [#2655]
152152

153+
nvas
154+
^^^^
155+
156+
- Made NVAS optional kwargs keyword only. [#2656]
157+
153158
oac
154159
^^^
155160

astroquery/nvas/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NvasClass(BaseQuery):
3434
"D": (110, 170),
3535
}
3636

37-
def get_images(self, coordinates, radius=0.25 * u.arcmin, max_rms=10000,
37+
def get_images(self, coordinates, *, radius=0.25 * u.arcmin, max_rms=10000,
3838
band="all", get_uvfits=False, verbose=True,
3939
get_query_payload=False, show_progress=True):
4040
"""
@@ -82,7 +82,7 @@ def get_images(self, coordinates, radius=0.25 * u.arcmin, max_rms=10000,
8282

8383
return filelist
8484

85-
def get_images_async(self, coordinates, radius=0.25 * u.arcmin,
85+
def get_images_async(self, coordinates, *, radius=0.25 * u.arcmin,
8686
max_rms=10000, band="all", get_uvfits=False,
8787
verbose=True, get_query_payload=False,
8888
show_progress=True):
@@ -136,7 +136,7 @@ def get_images_async(self, coordinates, radius=0.25 * u.arcmin,
136136
show_progress=show_progress)
137137
for U in image_urls]
138138

139-
def get_image_list(self, coordinates, radius=0.25 * u.arcmin,
139+
def get_image_list(self, coordinates, *, radius=0.25 * u.arcmin,
140140
max_rms=10000, band="all", get_uvfits=False,
141141
get_query_payload=False):
142142
"""
@@ -191,7 +191,7 @@ def get_image_list(self, coordinates, radius=0.25 * u.arcmin,
191191
get_uvfits=get_uvfits)
192192
return image_urls
193193

194-
def extract_image_urls(self, html_in, get_uvfits=False):
194+
def extract_image_urls(self, html_in, *, get_uvfits=False):
195195
"""
196196
Helper function that uses regexps to extract the image urls from the
197197
given HTML.

0 commit comments

Comments
 (0)