From 08bb32f8f36a1e2cc5359cf71fa43e116c753898 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 21 Nov 2023 20:54:11 -0500 Subject: [PATCH] Use astropy>=5.3 for doctest --- docs/analysis.rst | 4 ++-- docs/spectral_cube.rst | 4 ++-- setup.cfg | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/analysis.rst b/docs/analysis.rst index 6e4fcbfef..d6f4f6166 100644 --- a/docs/analysis.rst +++ b/docs/analysis.rst @@ -93,7 +93,7 @@ of a spectrum. Both are demonstrated below: >>> line_flux(noisy_gaussian, SpectralRegion(7*u.GHz, 3*u.GHz)) # doctest:+FLOAT_CMP >>> line_flux(noisy_gaussian).to(u.erg * u.cm**-2 * u.s**-1) # doctest:+FLOAT_CMP - + These line_flux measurements also include uncertainties if the spectrum itself has uncertainties: @@ -102,7 +102,7 @@ has uncertainties: >>> flux = line_flux(noisy_gaussian) >>> flux.uncertainty.to(u.erg * u.cm**-2 * u.s**-1) # doctest:+FLOAT_CMP - + >>> line_flux(noisy_gaussian, SpectralRegion(7*u.GHz, 3*u.GHz)) # doctest:+FLOAT_CMP diff --git a/docs/spectral_cube.rst b/docs/spectral_cube.rst index e7daf2f8b..42fd2bd26 100644 --- a/docs/spectral_cube.rst +++ b/docs/spectral_cube.rst @@ -59,7 +59,7 @@ Print the contents of 3 spectral axis points in a 3x3 spaxel array: [[0.5599331 , 0.554316 , 0.5618426 ], [0.5763055 , 0.5668046 , 0.5774939 ], - [0.59571505, 0.60118765, 0.59942234]]] 1e-17 erg / (Angstrom cm2 s spaxel)>, spectral_axis=, spectral_axis= [[0.65954393, 0.9084677 , 0.9965009 ], [0.6255246 , 0.84401435, 0.9930112 ], - [0.59066033, 0.762025 , 0.9361185 ]]] 1e-17 erg / (Angstrom cm2 s spaxel)>, spectral_axis=, spectral_axis==5.3 + docs/spectral_cube.rst = astropy>=5.3 text_file_format = rst addopts = --color=yes --doctest-rst asdf_schema_root = specutils/io/asdf/schemas