Skip to content

ignore warnings at import time in astrometry.net#18

Open
keflavich wants to merge 1 commit into
mainfrom
ignore-warnings-at-import-astrometry
Open

ignore warnings at import time in astrometry.net#18
keflavich wants to merge 1 commit into
mainfrom
ignore-warnings-at-import-astrometry

Conversation

@keflavich

Copy link
Copy Markdown
Owner

addresses issue astropy#1544 by explicitly ignoring warnings when the instance of the astrometry.net class is created at import time.

@keflavich

Copy link
Copy Markdown
Owner Author

this wasn't supposed to be a PR onto my own branch, but after thinking more, I don't think we should make this change

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #18 (4738822) into main (5ca7593) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   67.05%   67.05%           
=======================================
  Files         411      411           
  Lines       27212    27212           
=======================================
  Hits        18248    18248           
  Misses       8964     8964           
Impacted Files Coverage Δ
astroquery/astrometry_net/core.py 50.52% <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 5ca7593...4738822. Read the comment docs.

@bsipocz

bsipocz commented May 24, 2021

Copy link
Copy Markdown

but after thinking more, I don't think we should make this change

no, I don't think we should suppress this warning. Users should do it on their end, or rather get an API key.

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.

3 participants