@@ -55,8 +55,8 @@ class hips2fitsClass(BaseQuery):
55
55
def __init__ (self , * args ):
56
56
super ().__init__ ()
57
57
58
- def query_with_wcs (self , hips , wcs , format = "fits" , min_cut = 0.5 , max_cut = 99.5 , stretch = "linear" , cmap = "Greys_r " ,
59
- get_query_payload = False , verbose = False ):
58
+ def query_with_wcs (self , hips , wcs , * , format = "fits" , min_cut = 0.5 , max_cut = 99.5 , stretch = "linear" ,
59
+ cmap = "Greys_r" , get_query_payload = False , verbose = False ):
60
60
"""
61
61
Query the `CDS hips2fits service <http://alasky.u-strasbg.fr/hips-image-services/hips2fits>`_ with an
62
62
astropy WCS.
@@ -138,7 +138,7 @@ def query_with_wcs(self, hips, wcs, format="fits", min_cut=0.5, max_cut=99.5, st
138
138
>>> plt.show(im)
139
139
140
140
"""
141
- response = self .query_with_wcs_async (get_query_payload , hips = hips , wcs = wcs , format = format ,
141
+ response = self .query_with_wcs_async (get_query_payload = get_query_payload , hips = hips , wcs = wcs , format = format ,
142
142
min_cut = min_cut , max_cut = max_cut , stretch = stretch , cmap = cmap )
143
143
144
144
if get_query_payload :
@@ -148,7 +148,7 @@ def query_with_wcs(self, hips, wcs, format="fits", min_cut=0.5, max_cut=99.5, st
148
148
return result
149
149
150
150
@class_or_instance
151
- def query_with_wcs_async (self , get_query_payload = False , ** kwargs ):
151
+ def query_with_wcs_async (self , * , get_query_payload = False , ** kwargs ):
152
152
request_payload = self ._args_to_payload (** kwargs )
153
153
154
154
# primarily for debug purposes, but also useful if you want to send
@@ -167,8 +167,9 @@ def query_with_wcs_async(self, get_query_payload=False, **kwargs):
167
167
168
168
return response
169
169
170
- def query (self , hips , width , height , projection , ra , dec , fov , coordsys = "icrs" , rotation_angle = Angle (0 * u .deg ),
171
- format = "fits" , min_cut = 0.5 , max_cut = 99.5 , stretch = "linear" , cmap = "Greys_r" ,
170
+ def query (self , hips , width , height , projection , ra , dec , fov , * ,
171
+ coordsys = "icrs" , rotation_angle = Angle (0 * u .deg ), format = "fits" ,
172
+ min_cut = 0.5 , max_cut = 99.5 , stretch = "linear" , cmap = "Greys_r" ,
172
173
get_query_payload = False , verbose = False ):
173
174
"""
174
175
Query the `CDS hips2fits service <http://alasky.u-strasbg.fr/hips-image-services/hips2fits>`_.
@@ -268,9 +269,10 @@ def query(self, hips, width, height, projection, ra, dec, fov, coordsys="icrs",
268
269
>>> plt.show(im)
269
270
"""
270
271
271
- response = self .query_async (get_query_payload , hips = hips , width = width , height = height , projection = projection ,
272
- ra = ra , dec = dec , fov = fov , coordsys = coordsys , rotation_angle = rotation_angle ,
273
- format = format , min_cut = min_cut , max_cut = max_cut , stretch = stretch , cmap = cmap )
272
+ response = self .query_async (get_query_payload = get_query_payload , hips = hips , width = width , height = height ,
273
+ projection = projection , ra = ra , dec = dec , fov = fov , coordsys = coordsys ,
274
+ rotation_angle = rotation_angle , format = format , min_cut = min_cut ,
275
+ max_cut = max_cut , stretch = stretch , cmap = cmap )
274
276
275
277
if get_query_payload :
276
278
return response
@@ -279,7 +281,7 @@ def query(self, hips, width, height, projection, ra, dec, fov, coordsys="icrs",
279
281
return result
280
282
281
283
@class_or_instance
282
- def query_async (self , get_query_payload = False , ** kwargs ):
284
+ def query_async (self , * , get_query_payload = False , ** kwargs ):
283
285
request_payload = self ._args_to_payload (** kwargs )
284
286
285
287
# primarily for debug purposes, but also useful if you want to send
0 commit comments