Skip to content

Commit ff71c93

Browse files
committed
MAINT: changing the default for columns kwarg
1 parent 0663eac commit ff71c93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

astroquery/ipac/irsa/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def query_tap(self, query, *, maxrec=None):
6363
@deprecated_renamed_argument(("selcols", "cache", "verbose"), ("columns", None, None), since="0.4.7")
6464
def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
6565
radius=10 * u.arcsec, width=None, polygon=None,
66-
get_query_payload=False, columns=None,
66+
get_query_payload=False, columns='*',
6767
verbose=False, cache=True):
6868
"""
6969
Queries the IRSA TAP server around a coordinate and returns a `~astropy.table.Table` object.
@@ -106,9 +106,6 @@ def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
106106
if catalog is None:
107107
raise InvalidQueryError("Catalog name is required!")
108108

109-
if columns is None:
110-
columns = '*'
111-
112109
adql = f'SELECT {columns} FROM {catalog}'
113110

114111
if spatial == 'All-Sky':

0 commit comments

Comments
 (0)