From bd6fc4fca36b7328b29fb30b2696c63d74a7043d Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:00:47 -0400 Subject: [PATCH] BUG: Fix typo on internal method --- .../plugins/spectral_extraction/spectral_extraction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py index 3762b1649b..b4c6eef5b7 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -180,7 +180,7 @@ def __init__(self, *args, **kwargs): self.session.hub.subscribe(self, SliceValueUpdatedMessage, handler=self._on_slice_changed) self.hub.subscribe(self, GlobalDisplayUnitChanged, - handler=self._on_gloabl_display_unit_changed) + handler=self._on_global_display_unit_changed) self._update_disabled_msg() @@ -315,7 +315,7 @@ def _update_mark_scale(self, *args): else: self.background.scale_factor = self.slice_spectral_value/self.reference_spectral_value - def _on_gloabl_display_unit_changed(self, msg={}): + def _on_global_display_unit_changed(self, msg={}): if msg.axis == 'spectral_y': self.spectrum_y_units = str(msg.unit)