Skip to content

Commit

Permalink
break out of for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Dec 10, 2024
1 parent 81f6b97 commit 3e99e42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jdaviz/core/freezable_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e99e42

Please sign in to comment.