Skip to content

Commit 69f3c2b

Browse files
authored
Merge pull request #637 from bsipocz/MAINT_add_warning_ignore
MAINT: ignoring IERS warnings
2 parents d9336ff + 890b990 commit 69f3c2b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/dal/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ starting it, it creates a new object :py:class:`~pyvo.dal.AsyncTAPJob`.
264264
.. doctest-remote-data::
265265

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

269269
The job URL mentioned before is available in the ``url`` attribute.
270270
Clicking on the URL leads you to the query itself, where you can check
@@ -818,7 +818,6 @@ previews:
818818
... ).run_sync("select top 5 * from califadr3.cubes order by califaid")
819819
>>> for dl in rows.iter_datalinks(): # doctest: +IGNORE_WARNINGS
820820
... print(next(dl.bysemantics("#preview"))["access_url"])
821-
http://dc.zah.uni-heidelberg.de/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True
822821
http://dc.g-vo.org/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True
823822
http://dc.g-vo.org/getproduct/califa/datadr3/COMB/IC5376.COMB.rscube.fits?preview=True
824823
http://dc.g-vo.org/getproduct/califa/datadr3/V500/IC5376.V500.rscube.fits?preview=True

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ filterwarnings =
1717
# Numpy 2.0 deprecations triggered by upstream libraries.
1818
# Exact warning messages differ, thus using a super generic filter.
1919
ignore:numpy.core:DeprecationWarning
20+
# Added for python 3.8, cleanup once old python version support is removed
21+
# (adding it to conftest is ineffective as the PrototypeWarning line above already
22+
# triggers this warning at the time of collection
23+
ignore::astropy.utils.iers.iers.IERSStaleWarning
24+
# These two are also needed for python 3.8
25+
ignore:Importing ErfaWarning:astropy.utils.exceptions.AstropyDeprecationWarning
26+
ignore::astropy.utils.exceptions.ErfaWarning
2027
# We need to ignore this module level warning to not cause issues at collection time.
2128
# Remove it once warning is removed from code (in 1.7).
2229
ignore:pyvo.discover:pyvo.utils.prototype.PrototypeWarning

0 commit comments

Comments
 (0)