From 50ffe79bbfb5895c5bae8a93ab7b3c150e961761 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 24 Jul 2024 13:41:06 -0400 Subject: [PATCH] make updates after rebase --- .../plugins/spectral_extraction/spectral_extraction.py | 2 +- .../spectral_extraction/tests/test_spectral_extraction.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py index 3d5a4a53ad..b417b03752 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -144,7 +144,7 @@ def __init__(self, *args, **kwargs): dataset='dataset', multiselect=None, default_text='None', - subset_selected_changed_callback=self._update_extract) + subset_selected_changed_callback=self._update_extract) # noqa self.bg_spec_add_results = AddResults(self, 'bg_spec_results_label', 'bg_spec_results_label_default', diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py index d0146c01fb..32895927e6 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py @@ -367,14 +367,14 @@ def test_background_subtraction(cubeviz_helper, spectrum1d_cube_largest): # the background subtracted from each slice in wavelength from the aperture should be equal # to the background -- which is the minimum per spectral slice in this example cube -- divided # by the number of pixels in the aperture: - cube_min_per_slice = extract_plg._obj.spectral_cube['flux'].min(axis=(0, 1)) + cube_min_per_slice = extract_plg._obj.cube['flux'].min(axis=(0, 1)) np.testing.assert_allclose( bg_spec.flux.value / n_aperture_pixels, cube_min_per_slice ) # background normalized per spaxel should be equal to the minimum per spectral slice: - cube_min_per_slice = extract_plg._obj.spectral_cube['flux'].min(axis=(0, 1)) + cube_min_per_slice = extract_plg._obj.cube['flux'].min(axis=(0, 1)) np.testing.assert_allclose( bg_spec_normed.flux.value / n_bg_pixels, cube_min_per_slice