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
Interactively create a new subset in the viewer. This sets the app-wide subset
selection to 'Create New' and selects the appropriate tool in this viewer's toolbar.
imviz.load_regions_from_file()/cubeviz.load_regions_from_file(): Can probably be replaced with subset_tools.import_region() but the latter has no way to set max_num_regions=20. The 20 max was originally added because Ori tried to load a giant regions file (thousands of regions) and crashed Imviz. How do we impose such a limit on subset_tools API?
See :ref:`regions:regions_io` for supported file formats.
See :meth:`load_regions` for how regions are loaded.
imviz.load_regions()/cubeviz.load_regions(): Can probably be replaced with subset_tools.import_region() and deprecated. But why didn't we? Were there blockers?
WCS-to-pixel translation and mask creation, if needed, is relative
to the image defined by ``refdata_label``. Meanwhile, the rest of
the Subset operations are based on reference image as defined by Glue.
imviz.load_data("something.reg"): This calls the canonical Subset API, so probably okay to keep since this allows importing regions from file in "standalone" mode.
imviz._apply_interactive_region()/cubeviz._apply_interactive_region(): Can probably be replaced using public Subset API now. Can be removed without deprecation.
subset_tools.import_region()
: This is the new canonical APIjdaviz/jdaviz/configs/default/plugins/subset_tools/subset_tools.py
Lines 894 to 897 in 4ffc3a0
data_menu.create_subset()
: Tied directly to glue-jupyter GUI, so maybe we just leave this one alone?jdaviz/jdaviz/configs/default/plugins/data_menu/data_menu.py
Lines 448 to 451 in 4ffc3a0
imviz.load_regions_from_file()
/cubeviz.load_regions_from_file()
: Can probably be replaced withsubset_tools.import_region()
but the latter has no way to setmax_num_regions=20
. The20
max was originally added because Ori tried to load a giant regions file (thousands of regions) and crashed Imviz. How do we impose such a limit onsubset_tools
API?jdaviz/jdaviz/core/helpers.py
Lines 574 to 578 in 4ffc3a0
imviz.load_regions()
/cubeviz.load_regions()
: Can probably be replaced withsubset_tools.import_region()
and deprecated. But why didn't we? Were there blockers?jdaviz/jdaviz/core/helpers.py
Lines 606 to 611 in 4ffc3a0
imviz.load_data("something.reg")
: This calls the canonical Subset API, so probably okay to keep since this allows importing regions from file in "standalone" mode.jdaviz/jdaviz/configs/imviz/plugins/parsers.py
Lines 127 to 130 in 4ffc3a0
imviz._apply_interactive_region()
/cubeviz._apply_interactive_region()
: Can probably be replaced using public Subset API now. Can be removed without deprecation.https://github.com/spacetelescope/jdaviz/blob/4ffc3a03b475d45b9a56f20dfbf5e75f3d25b7d0/jdaviz/core/helpers.py#L841C11-L844
🐱
The text was updated successfully, but these errors were encountered: