Skip to content

Commit 1ed1b25

Browse files
committed
changed Request to UKIDSSQuery
1 parent e7e50cd commit 1ed1b25

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

astrodata/ukidss/ukidss.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import time
1919
import tempfile
2020

21-
__all__ = ['Request']
21+
__all__ = ['Query']
2222

2323
class LinksExtractor(htmllib.HTMLParser): # derive new HTML parser
2424

@@ -46,9 +46,9 @@ def get_links(self):
4646
'difference', 'all']
4747

4848

49-
class Request():
49+
class UKIDSSQuery():
5050
"""
51-
The Request class. Must instantiate this class in order to make any
51+
The Query class. Must instantiate this class in order to make any
5252
queries. Allows registered users to login, but defaults to using the
5353
public UKIDSS data sets.
5454
"""
@@ -124,7 +124,7 @@ def get_image_gal(self, glon, glat, filter='all', frametype='stack',
124124
125125
Examples
126126
--------
127-
>>> R = Request()
127+
>>> R = Query()
128128
>>> fitsfile = R.get_image_gal(10.5,0.0)
129129
"""
130130

@@ -241,7 +241,7 @@ def get_images_radius(self, ra, dec, radius, filter='all',
241241
242242
Examples
243243
--------
244-
>>> R = Request()
244+
>>> R = Query()
245245
>>> fitsfile = R.get_image_gal(10.5,0.0)
246246
"""
247247

@@ -365,7 +365,7 @@ def get_catalog_gal(self, glon, glat, directory=None, radius=1, save=False):
365365
366366
Example
367367
-------
368-
>>> R = Request()
368+
>>> R = Query()
369369
>>> data = R.get_catalog_gal(10.625,-0.38,radius=0.1)
370370
>>> bintable = data[0][1]
371371
"""

docs/astrodata/ukidss.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Getting started
1010
The following example illustrates an UKIDSS catalog/image query::
1111

1212
>>> from astrodata import ukidss
13-
>>> R = ukidss.Request()
14-
>>> fitsfile = R.get_image_gal(10.5,0.0)
15-
>>> fitsfile = R.get_image_gal(10.5,0.0)
16-
>>> data = R.get_catalog_gal(10.625,-0.38,radius=0.1)
13+
>>> Q = ukidss.UKIDSSQuery()
14+
>>> fitsfile = Q.get_image_gal(10.5,0.0)
15+
>>> fitsfile = Q.get_image_gal(10.5,0.0)
16+
>>> data = Q.get_catalog_gal(10.625,-0.38,radius=0.1)
1717
>>> bintable = data[0][1]
1818

1919

0 commit comments

Comments
 (0)