Skip to content

Enable calling Gaia.query_object() with both columns and radius#2249

Merged
ceb8 merged 3 commits into
astropy:mainfrom
eerovaher:gaia-object-radius-columns
Jan 30, 2022
Merged

Enable calling Gaia.query_object() with both columns and radius#2249
ceb8 merged 3 commits into
astropy:mainfrom
eerovaher:gaia-object-radius-columns

Conversation

@eerovaher

Copy link
Copy Markdown
Member

Currently Gaia.query_object() and Gaia.query_object_async() ignore their columns argument if radius is specified. This pull request provides the bugfix.

Fixes #2025

@codecov

codecov Bot commented Dec 14, 2021

Copy link
Copy Markdown

Codecov Report

Merging #2249 (252b116) into main (a31ab86) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2249   +/-   ##
=======================================
  Coverage   62.60%   62.60%           
=======================================
  Files         131      131           
  Lines       16784    16784           
=======================================
  Hits        10508    10508           
  Misses       6276     6276           
Impacted Files Coverage Δ
astroquery/gaia/core.py 61.45% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a31ab86...252b116. Read the comment docs.

eerovaher added a commit to eerovaher/astroquery that referenced this pull request Dec 27, 2021
@eerovaher eerovaher force-pushed the gaia-object-radius-columns branch from ecf8cf3 to d21bcd3 Compare December 27, 2021 16:03
@eerovaher

Copy link
Copy Markdown
Member Author

This wasn't included in the 0.4.5 release, so I had to rebase to update the change log entry.

Currently the `astroquery.gaia.core.GaiaClass.query_object()` method
ignores the `column` argument if `radius` is specified. This commit adds
a remote test that reveals the problem.
The method `astroquery.gaia.core.GaiaClass.__query_object()` no longer
ignores its `column` argument when `radius` is specified.
@eerovaher eerovaher force-pushed the gaia-object-radius-columns branch from d21bcd3 to 252b116 Compare January 12, 2022 00:00
@eerovaher

Copy link
Copy Markdown
Member Author

I had to rebase to avoid another merge conflict in the change log.

@eerovaher

Copy link
Copy Markdown
Member Author

The CI failure is unrelated to the changes implemented here, see astropy/pyvo#288. Should I update this pull request to restart the tests or is this good to go with the CI results being what they are?

@keflavich

Copy link
Copy Markdown
Contributor

I just restarted the jobs - they should work now that there is a released pyvo w/the corrected namespace

@eerovaher

Copy link
Copy Markdown
Member Author

@bsipocz, could you review this?

@ceb8 ceb8 merged commit 28bcee6 into astropy:main Jan 30, 2022
@ceb8

ceb8 commented Jan 30, 2022

Copy link
Copy Markdown
Member

Thanks @eerovaher !

@bsipocz bsipocz added this to the v0.4.6 milestone Jan 31, 2022
@eerovaher eerovaher deleted the gaia-object-radius-columns branch February 10, 2022 13:54
syed-gilani pushed a commit to syed-gilani/astroquery that referenced this pull request Mar 11, 2022
mhsarmiento pushed a commit to esdc-esac-esa-int/astroquery that referenced this pull request May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants