Skip to content

Commit

Permalink
Continue with renaming subsets to subset tools
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Nov 20, 2024
1 parent 9f460c2 commit fd0ab68
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions docs/cubeviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Visualize data quality arrays for spectral cubes from JWST.

.. _cubeviz-subset-plugin:

Subsets
=======
Subset Tools
============

.. seealso::

:ref:`Subsets <imviz-subset-plugin>`
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz.


Expand Down
4 changes: 2 additions & 2 deletions docs/imviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ in the "Filter by bits" dropdown, or from the API we could:
.. _imviz-subset-plugin:

Subsets
=======
Subset Tools
============

This plugin allows you to select an existing subset to modify, or to select
:guilabel:`Create new` to create a new subset by selecting and using the region selector
Expand Down
6 changes: 3 additions & 3 deletions docs/mosviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ This plugin gives access to per-viewer and per-layer plotting options.

.. _mosviz-subset-plugin:

Subsets
=======
Subset Tools
============

.. seealso::

:ref:`Subsets <imviz-subset-plugin>`
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz.

.. _imviz_export_markers:
Expand Down
6 changes: 3 additions & 3 deletions docs/rampviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ To show axes on image viewers, toggle on the "Show axes" option at the bottom of

.. _rampviz-subset-plugin:

Subsets
=======
Subset Tools
============

.. seealso::

:ref:`Subsets <imviz-subset-plugin>`
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz.


Expand Down
6 changes: 3 additions & 3 deletions docs/specviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ Plot Options

.. _specviz-subset-plugin:

Subsets
=======
Subset Tools
============

.. seealso::

:ref:`Subsets <imviz-subset-plugin>`
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz. Subsets
in Specviz are strictly spectral subsets and do not support rotation or
recentering.
Expand Down
6 changes: 3 additions & 3 deletions docs/specviz2d/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ Plot Options

.. _specviz2d-subset-plugin:

Subsets
=======
Subset Tools
============

.. seealso::

:ref:`Subsets <imviz-subset-plugin>`
:ref:`Subset Tools <imviz-subset-plugin>`
Imviz documentation describing the concept of subsets in Jdaviz.

Markers
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/components/data_menu_subset_edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<v-list dense style="width: 300px">
<v-list-item>
<v-list-item-content>
<j-tooltip :tooltipcontent="'Open '+subset_selected+' in Subsets plugin'">
<j-tooltip :tooltipcontent="'Open '+subset_selected+' in Subset Tools plugin'">
<span
style="cursor: pointer; width: 100%"
@click="() => {$emit('view-info')}"
Expand Down
4 changes: 2 additions & 2 deletions jdaviz/configs/default/plugins/data_menu/data_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ def view_info(self):
if len(self.layer.selected) != 1:
raise ValueError("Only one layer can be selected to view info.")
if self.layer.selected[0] in self.existing_subset_labels:
sp = self._viewer.jdaviz_helper.plugins.get('Subsets', None)
sp = self._viewer.jdaviz_helper.plugins.get('Subset Tools', None)
if sp is None: # pragma: no cover
raise ValueError("subsets plugin not available")
raise ValueError("subset tools plugin not available")
sp._obj.subset.selected = self.layer.selected[0]
sp.open_in_tray()
else:
Expand Down
4 changes: 2 additions & 2 deletions jdaviz/configs/default/plugins/subset_plugin/subset_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
COMBO_OPTIONS = list(SUBSET_MODES_PRETTY.keys())


@tray_registry('g-subset-plugin', label="Subsets")
@tray_registry('g-subset-plugin', label="Subset Tools")
class SubsetPlugin(PluginTemplateMixin, DatasetSelectMixin):
"""
See the :ref:`Subsets <imviz-subset-plugin>` for more details.
See the :ref:`Subset Tools <imviz-subset-plugin>` for more details.
Only the following attributes and methods are available through the
:ref:`public plugin API <plugin-apis>`:
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _get_real_xy(self, image, x, y, reverse=False):
When `True`, it sets the coords, otherwise it resets.
``reverse=True`` is only for internal roundtripping (e.g., centroiding
in Subsets plugin). Never use this for coordinates display panel.
in Subset Tools plugin). Never use this for coordinates display panel.
"""
# By default we'll assume the coordinates are valid and within any applicable bounding box.
Expand Down

0 comments on commit fd0ab68

Please sign in to comment.