Skip to content

Gaia.query_object ignores "columns" if "radius" is provided #2025

@ptbraunschweig

Description

@ptbraunschweig

When a value for "radius" is passed to Gaia.query_object, the value of "columns" is ignored. This does not occur if "radius" is left blank and "width" and "height" are specified instead.

Example:

from astroquery.gaia import Gaia
from astropy import units
from astropy.coordinates import SkyCoord

radius = 10 * units.arcsec
ra = 0 * units.degree
dec = 0 * units.degree
c = SkyCoord(ra=ra, dec=dec)

table = Gaia.query_object(c, radius=radius, columns=["ra", "dec"])
print(table.colnames)

Expected Behavior:

Prints "['dist', 'ra', 'dec']"

Actual Behavior:

Prints names of all possible columns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions