Skip to content

Commit

Permalink
remove hide_only functionality
Browse files Browse the repository at this point in the history
unused except for in one test
  • Loading branch information
kecnry committed Feb 4, 2025
1 parent 85e2bc6 commit 511a306
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions jdaviz/configs/imviz/plugins/catalogs/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ def clear_table_callback():
# all markers are removed from the viewer
viewer.remove_markers(marker_name=self._marker_name)

elif self.results_available:
from jdaviz.utils import layer_is_table_data

# markers still there, just hidden
for lyr in viewer.layers:
if layer_is_table_data(lyr.layer) and lyr.layer.label == self._marker_name:
lyr.visible = False

self.table._clear_callback = clear_table_callback

self.table_selected = Table(self, name='table_selected')
Expand Down
5 changes: 0 additions & 5 deletions jdaviz/configs/imviz/tests/test_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,6 @@ def test_offline_ecsv_catalog(imviz_helper, image_2d_wcs, tmp_path):
assert len(imviz_helper.app.data_collection) == 2 # image + markers

catalogs_plugin.clear_table()

assert not catalogs_plugin.results_available
assert len(imviz_helper.app.data_collection) == 2 # markers still there, just hidden

catalogs_plugin.clear_table(hide_only=False)
assert not catalogs_plugin.results_available
assert len(imviz_helper.app.data_collection) == 1 # markers gone for good

Expand Down

0 comments on commit 511a306

Please sign in to comment.