Skip to content

Commit

Permalink
add docstring for delete_subsets
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Nov 19, 2024
1 parent e2fdace commit e22aa08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jdaviz/configs/imviz/plugins/orientation/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Orientation(PluginTemplateMixin, ViewerSelectMixin):
* :meth:`~jdaviz.core.template_mixin.PluginTemplateMixin.close_in_tray`
* ``align_by`` (`~jdaviz.core.template_mixin.SelectPluginComponent`)
* ``wcs_fast_approximation``
* :meth:`delete_subsets``
* :meth:`delete_subsets`
* ``viewer``
* ``orientation``
* ``rotation_angle``
Expand Down Expand Up @@ -289,6 +289,9 @@ def _on_subset_change(self, msg):
self.need_clear_subsets = len(self.app.data_collection.subset_groups) > 0

def delete_subsets(self):
"""
Delete all subsets app-wide. Required before changing ``align_by``.
"""
# subsets will be deleted on changing link type:
for subset_group in self.app.data_collection.subset_groups:
self.app.data_collection.remove_subset_group(subset_group)
Expand Down

0 comments on commit e22aa08

Please sign in to comment.