Skip to content

Commit

Permalink
yet another fix for cubeviz initialization in degs
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Apr 13, 2023
1 parent 0f84833 commit 2060082
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def user_api(self):
def _on_glue_x_display_unit_changed(self, x_unit):
if x_unit is None:
return
if x_unit == 'deg' and self.app.config == 'cubeviz':
# original unit during init can be deg (before axis is set correctly)
return
self.spectrum_viewer.set_plot_axes()
if x_unit != self.spectral_unit.selected:
x_unit = _valid_glue_display_unit(x_unit, self.spectrum_viewer, 'x')
Expand Down

0 comments on commit 2060082

Please sign in to comment.