From 3e99e428f91163f6c2e8049bbca497759fe3e78d Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 10 Dec 2024 08:40:09 -0500 Subject: [PATCH] break out of for-loop --- jdaviz/core/freezable_state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jdaviz/core/freezable_state.py b/jdaviz/core/freezable_state.py index d2ef6504f2..6238d0741e 100644 --- a/jdaviz/core/freezable_state.py +++ b/jdaviz/core/freezable_state.py @@ -72,6 +72,7 @@ def _convert_units_y_limits(self, old_unit, new_unit): if layer.layer.meta.get('_pixel_scale_factor'): spectral_axis.info.meta = {'_pixel_scale_factor', layer.layer.meta.get('_pixel_scale_factor')} + break y_corners_new = flux_conversion(y_corners, old_unit, new_unit, spectral_axis=spectral_axis) # noqa