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