You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dictionary mapping subset labels to their respective ``regions``
objects (for spatial regions) or ``SpectralRegions`` objects
(for spectral regions).
jdaviz.app.get_subsets(): We want to be able to replace this with subset_tools.get_regions() or have subset_tools.get_regions() call this instead, but somehow it was not possible, why? Note that this method is way more complicated than the one in subset_tools and calls another recursive method and also is more powerful. Need to think how to consolidate the two.
Returns a nested dictionary with, for each subset, 'name', 'glue_state',
'region', 'sky_region' (set to None if not applicable), and 'subset_state'.
If subset is composite, each constituant subset will be included individually.
jdaviz.app.get_sub_regions(): Only used internally in jdaviz.app.get_subsets(). Keep an eye out in case it is no longer necessary if we remove jdaviz.app.get_subsets().
jdaviz.core.region_translators._get_region_from_spatial_subset(): It is used internally in jdaviz.core.template_mixin.SubsetSelect._get_spatial_region(), aper_phot._background_selected_changed(), and subset_tools.recenter(). Should this function be retired? Can it be replaced by subset_tools API?
subset_tools.get_regions()
: We want this to be the canonical API.jdaviz/jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Lines 182 to 183 in 4ffc3a0
jdaviz/jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Lines 207 to 212 in 4ffc3a0
jdaviz.app.get_subsets()
: We want to be able to replace this withsubset_tools.get_regions()
or havesubset_tools.get_regions()
call this instead, but somehow it was not possible, why? Note that this method is way more complicated than the one insubset_tools
and calls another recursive method and also is more powerful. Need to think how to consolidate the two.jdaviz/jdaviz/app.py
Lines 921 to 924 in 4ffc3a0
jdaviz/jdaviz/app.py
Lines 952 to 957 in 4ffc3a0
jdaviz.app.get_sub_regions()
: Only used internally injdaviz.app.get_subsets()
. Keep an eye out in case it is no longer necessary if we removejdaviz.app.get_subsets()
.jdaviz/jdaviz/app.py
Lines 1138 to 1139 in 4ffc3a0
export.save_subset_as_region()
andexport.save_subset_as_table()
: Relies onjdaviz.app.get_subsets()
. Should this usesubset_tools
API instead?jdaviz/jdaviz/configs/default/plugins/export/export.py
Line 731 in 4ffc3a0
jdaviz/jdaviz/configs/default/plugins/export/export.py
Line 751 in 4ffc3a0
subset_tools._unpack_get_subsets_for_ui()
: Relies onjdaviz.app.get_subsets()
. Should this usesubset_tools
API instead?jdaviz/jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Line 350 in 4ffc3a0
jdaviz.core.region_translators._get_region_from_spatial_subset()
: It is used internally injdaviz.core.template_mixin.SubsetSelect._get_spatial_region()
,aper_phot._background_selected_changed()
, andsubset_tools.recenter()
. Should this function be retired? Can it be replaced bysubset_tools
API?jdaviz/jdaviz/core/region_translators.py
Line 23 in 4ffc3a0
Already deprecated
jdaviz/jdaviz/core/helpers.py
Lines 792 to 793 in 4ffc3a0
jdaviz/jdaviz/configs/specviz/helper.py
Lines 151 to 152 in 4ffc3a0
🐱
The text was updated successfully, but these errors were encountered: