Skip to content

Commit

Permalink
ensure spectral axis only passed in correct cases
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Jan 3, 2025
1 parent 7d5dd03 commit 289bf10
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 @@ -83,6 +83,7 @@ def _convert_units_y_limits(self, old_unit, new_unit):
else:
spectral_axis.info.meta = {}
eqv = all_flux_unit_conversion_equivs(cube_wave=spectral_axis)
spectral_axis = None

y_corners_new = flux_conversion(y_corners, old_unit, new_unit, spectral_axis=spectral_axis, eqv=eqv) # noqa

Expand Down

0 comments on commit 289bf10

Please sign in to comment.