changing new argument order
@@ -1984,7 +1984,7 @@ class CatalogsClass(MastClass):
@class_or_instance
def query_object_async(self, objectname, radius=0.2*u.deg, catalog="Hsc",
- version=None, pagesize=None, page=None, **kwargs):
+ pagesize=None, page=None, version=None, **kwargs):
"""
Given an object name, returns a list of catalog entries.
See column documentation for specific catalogs `here <https://mast.stsci.edu/api/v0/pages.html>`__.
@@ -2009,6 +2009,8 @@ class CatalogsClass(MastClass):
Defaulte None.
Can be used to override the default behavior of all results being returned
to obtain a specific page of results.
+ version : int, optional
+ Version number for catalogs that have versions. Default is highest version.
**kwargs
Catalog-specific keyword args.
These can be found in the `service documentation <https://mast.stsci.edu/api/v0/_services.html>`__.
@@ -2021,7 +2023,8 @@ class CatalogsClass(MastClass):
coordinates = self.resolve_object(objectname)
- return self.query_region_async(coordinates, radius, catalog, version, pagesize, page, **kwargs)
+ return self.query_region_async(coordinates, radius, catalog,
+ version=version, pagesize=pagesize, page=page, **kwargs)
@class_or_instance
def query_criteria_async(self, catalog, pagesize=None, page=None, **criteria):
@@ -2122,8 +2125,8 @@ class CatalogsClass(MastClass):
if not catalogs_service:
params["filters"] = mashup_filters
- # TIC needs columns specified
- if catalog.lower() == "tic":
+ # TIC and CTL need columns specified
+ if catalog.lower() in ("tic","ctl"):
params["columns"] = "*"
if catalogs_service:
