Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: ignoring IERS warnings #637

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/dal/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ starting it, it creates a new object :py:class:`~pyvo.dal.AsyncTAPJob`.
.. doctest-remote-data::

>>> job.url
'http://dc.g-vo.org/__system__/tap/run/async/0nh4f2pt'
'http://dc.g-vo.org/__system__/tap/run/async/...'

The job URL mentioned before is available in the ``url`` attribute.
Clicking on the URL leads you to the query itself, where you can check
Expand Down Expand Up @@ -818,7 +818,6 @@ previews:
... ).run_sync("select top 5 * from califadr3.cubes order by califaid")
>>> for dl in rows.iter_datalinks(): # doctest: +IGNORE_WARNINGS
... print(next(dl.bysemantics("#preview"))["access_url"])
http://dc.zah.uni-heidelberg.de/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True
http://dc.g-vo.org/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True
http://dc.g-vo.org/getproduct/califa/datadr3/COMB/IC5376.COMB.rscube.fits?preview=True
http://dc.g-vo.org/getproduct/califa/datadr3/V500/IC5376.V500.rscube.fits?preview=True
Expand Down
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ filterwarnings =
# Numpy 2.0 deprecations triggered by upstream libraries.
# Exact warning messages differ, thus using a super generic filter.
ignore:numpy.core:DeprecationWarning
# Added for python 3.8, cleanup once old python version support is removed
# (adding it to conftest is ineffective as the PrototypeWarning line above already
# triggers this warning at the time of collection
ignore::astropy.utils.iers.iers.IERSStaleWarning
# These two are also needed for python 3.8
ignore:Importing ErfaWarning:astropy.utils.exceptions.AstropyDeprecationWarning
ignore::astropy.utils.exceptions.ErfaWarning
# We need to ignore this module level warning to not cause issues at collection time.
# Remove it once warning is removed from code (in 1.7).
ignore:pyvo.discover:pyvo.utils.prototype.PrototypeWarning
Expand Down
Loading