From 9a60c124b7dee4e22b64108ae95896ce8edd4448 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Mon, 25 Nov 2024 14:47:46 -0500 Subject: [PATCH] Backport PR #3317: Fix CI/RTD failures --- jdaviz/utils.py | 2 +- pyproject.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jdaviz/utils.py b/jdaviz/utils.py index 9d04a9a752..a91e3d02bc 100644 --- a/jdaviz/utils.py +++ b/jdaviz/utils.py @@ -360,7 +360,7 @@ def flux_conversion(values, original_units, target_units, spec=None, eqv=None, s spec : `~specutils.Spectrum1D`, optional The Spectrum1D object that will have converted flux or surface brightness units. - eqv : list of `astropy.units.equivalencies`, optional + eqv : list of :ref:`astropy:unit_equivalencies`, optional A list of Astropy equivalencies necessary for complex unit conversions/translations. slice : `astropy.units.Quantity`, optional diff --git a/pyproject.toml b/pyproject.toml index 98d2ccb61a..83f8179694 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,6 +138,8 @@ filterwarnings = [ "ignore::DeprecationWarning:glue", "ignore::DeprecationWarning:asteval", "ignore:::specutils.spectra.spectrum1d", + # Remove the following line once https://github.com/astrofrog/mpl-scatter-density/issues/46 is addressed + "ignore:pkg_resources is deprecated as an API:DeprecationWarning:mpl_scatter_density", # Ignore numpy 2.0 warning, see https://github.com/astropy/astropy/pull/15495 # and https://github.com/scipy/scipy/pull/19275 "ignore:.*numpy\\.core.*:DeprecationWarning",