Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Clare Shanahan authored and Clare Shanahan committed Nov 28, 2024
1 parent 622e5eb commit 79bc2d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jdaviz/configs/cubeviz/plugins/tests/test_cubeviz_aperphot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_cubeviz_aperphot_cube_orig_flux(cubeviz_helper, image_cube_hdu_obj_micr

aper = RectanglePixelRegion(center=PixCoord(x=1, y=2), width=3, height=5)

cubeviz_helper.plugins['Subsets'].import_region(aper)
cubeviz_helper.plugins['Subset Tools'].import_region(aper)

# Make sure MASK is not an option even when shown in viewer.
cubeviz_helper.app.add_data_to_viewer("flux-viewer", "test[MASK]", visible=True)
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_cubeviz_aperphot_generated_3d_gaussian_smooth(cubeviz_helper, image_cub
cubeviz_helper.app.add_data_to_viewer("uncert-viewer", "test[FLUX] spatial-smooth stddev-1.0")

aper = RectanglePixelRegion(center=PixCoord(x=1, y=2), width=3, height=5)
cubeviz_helper.plugins['Subsets'].import_region(aper)
cubeviz_helper.plugins['Subset Tools'].import_region(aper)

plg = cubeviz_helper.plugins["Aperture Photometry"]._obj
plg.dataset_selected = "test[FLUX] spatial-smooth stddev-1.0"
Expand Down Expand Up @@ -214,7 +214,7 @@ def test_cubeviz_aperphot_cube_orig_flux_mjysr(cubeviz_helper,

aper = RectanglePixelRegion(center=PixCoord(x=3, y=1), width=1, height=1)
bg = RectanglePixelRegion(center=PixCoord(x=2, y=0), width=1, height=1)
cubeviz_helper.plugins['Subsets'].import_region([aper, bg],
cubeviz_helper.plugins['Subset Tools'].import_region([aper, bg],
combination_mode='new')

plg = cubeviz_helper.plugins["Aperture Photometry"]._obj
Expand Down Expand Up @@ -308,7 +308,7 @@ def test_cubeviz_aperphot_unit_conversions(cubeviz_helper,
cubeviz_helper.load_data(cube, data_label="test")

# get plugins
st = cubeviz_helper.plugins['Subsets']
st = cubeviz_helper.plugins['Subset Tools']
ap = cubeviz_helper.plugins['Aperture Photometry']._obj
uc = cubeviz_helper.plugins['Unit Conversion']

Expand Down

0 comments on commit 79bc2d4

Please sign in to comment.