Skip to content

Commit 2ccda34

Browse files
committed
Use new variable name from spacetelescope#1221
1 parent cb9b6a7 commit 2ccda34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdaviz/configs/imviz/tests/test_simple_aper_phot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def test_annulus_background(imviz_helper):
181181
imviz_helper.load_data(ones, data_label='ones')
182182

183183
phot_plugin = imviz_helper.app.get_tray_item_from_name('imviz-aper-phot-simple')
184-
phot_plugin.data_selected = 'ones'
184+
phot_plugin.dataset_selected = 'ones'
185185

186186
# Mark an object of interest
187187
imviz_helper._apply_interactive_region('bqplot:circle', (143, 18), (157, 32))
@@ -194,7 +194,7 @@ def test_annulus_background(imviz_helper):
194194
assert_allclose(phot_plugin.background_value, 1)
195195

196196
# Switch data
197-
phot_plugin.data_selected = 'four_gaussians'
197+
phot_plugin.dataset_selected = 'four_gaussians'
198198
assert_allclose(phot_plugin.bg_annulus_inner_r, 7) # Unchanged
199199
assert_allclose(phot_plugin.bg_annulus_width, 10)
200200
assert_allclose(phot_plugin.background_value, 5.745596129482831) # Changed

0 commit comments

Comments
 (0)