From 9231d1d2c2e6bcd83ff218c9b818cada61a63490 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 22 May 2024 13:59:26 -0400 Subject: [PATCH] _like to avoid quantities --- .../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 89a7634a7e..a231c6f9a1 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -315,7 +315,7 @@ def aperture_weight_mask(self): # wavelength, on the range [0, 1]. if self.aperture.selected == self.aperture.default_text: # Entire Cube - return np.ones_like(self.dataset.selected_obj.flux) + return np.ones_like(self.dataset.selected_obj.flux.value) return self.aperture.get_mask(self.dataset.selected_obj, self.aperture_method_selected, self.spectral_display_unit, @@ -325,7 +325,7 @@ def aperture_weight_mask(self): def bg_weight_mask(self): if self.background.selected == self.background.default_text: # NO background - return np.zeros_like(self.dataset.selected_obj.flux) + return np.zeros_like(self.dataset.selected_obj.flux.value) return self.background.get_mask(self.dataset.selected_obj, self.aperture_method_selected, self.spectral_display_unit,