From bafb725ca65764e2b8ff85e7a709ace9fd812e93 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen <39831871+rosteen@users.noreply.github.com> Date: Fri, 22 Nov 2024 10:28:29 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com> --- jdaviz/core/custom_units.py | 2 +- jdaviz/utils.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jdaviz/core/custom_units.py b/jdaviz/core/custom_units.py index 1c09a24600..dce1f7b188 100644 --- a/jdaviz/core/custom_units.py +++ b/jdaviz/core/custom_units.py @@ -8,7 +8,7 @@ # Add spaxel to enabled units def enable_spaxel_unit(): - spaxel = spaxel = u.Unit('spaxel', represents=u.pixel, parse_strict='silent') + spaxel = u.Unit('spaxel', represents=u.pixel, parse_strict='silent') u.add_enabled_units([spaxel]) return diff --git a/jdaviz/utils.py b/jdaviz/utils.py index 7a6b69c77b..12de2fc708 100644 --- a/jdaviz/utils.py +++ b/jdaviz/utils.py @@ -567,8 +567,6 @@ def _eqv_flux_to_sb_pixel(): equivs += [(flux_unit / u.Unit('spaxel'), flux_unit / PIX2, lambda x: x, lambda x: x) for flux_unit in flux_units] - print(flux_units[1] / u.Unit('spaxel')) - return equivs