From a476aa836a5fd0efc0da503e818ff3cf05571b2d Mon Sep 17 00:00:00 2001 From: Clare Shanahan Date: Thu, 19 Sep 2024 22:42:59 -0400 Subject: [PATCH] . --- jdaviz/configs/cubeviz/plugins/parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jdaviz/configs/cubeviz/plugins/parsers.py b/jdaviz/configs/cubeviz/plugins/parsers.py index d14e77ad4d..cec74bae5d 100644 --- a/jdaviz/configs/cubeviz/plugins/parsers.py +++ b/jdaviz/configs/cubeviz/plugins/parsers.py @@ -579,16 +579,16 @@ def convert_spectrum1d_from_flux_to_flux_per_pixel(spectrum): """ Converts a Spectrum1D object's flux units to flux per square pixel. - This function takes a `Spectrum1D` object with flux units and converts the + This function takes a `specutils.Spectrum1D` object with flux units and converts the flux (and optionally, uncertainty) to a surface brightness per square pixel (e.g., from Jy to Jy/pix**2). This is done by updating the units of spectrum.flux - and (if present) spectrum.uncertainty, and creating a new `Spectrum1D` + and (if present) spectrum.uncertainty, and creating a new `specutils.Spectrum1D` object with the modified flux and uncertainty. Parameters ---------- spectrum : Spectrum1D - A `Spectrum1D` object containing flux data, which is assumed to be in + A `specutils.Spectrum1D` object containing flux data, which is assumed to be in flux units without any angular component in the denominator. Returns