From 1183d5db079f9a9c3ceb117390158a16e26c16bc Mon Sep 17 00:00:00 2001 From: gibsongreen Date: Fri, 13 Dec 2024 14:42:51 -0500 Subject: [PATCH] move comment --- jdaviz/configs/imviz/plugins/catalogs/catalogs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py index 38d56afc50..13ec7beda8 100644 --- a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py +++ b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py @@ -242,8 +242,6 @@ def search(self, error_on_fail=False): x_coordinates = np.squeeze(filtered_pair_pixel_table[0]) y_coordinates = np.squeeze(filtered_pair_pixel_table[1]) - # NOTE: If performance becomes a problem, see - # https://docs.astropy.org/en/stable/table/index.html#performance-tips if self.catalog_selected in ["SDSS", "Gaia"]: # for single source convert table information to lists for zipping if len(self.app._catalog_source_table) == 1 or self.max_sources == 1: @@ -264,6 +262,8 @@ def search(self, error_on_fail=False): 'x_coord': x_coord.item() if x_coord.size == 1 else x_coord, 'y_coord': y_coord.item() if y_coord.size == 1 else y_coord} self.table.add_item(row_info) + # NOTE: If performance becomes a problem, see + # https://docs.astropy.org/en/stable/table/index.html#performance-tips elif self.catalog_selected in ["From File..."]: # for single source convert table information to lists for zipping if len(self.app._catalog_source_table) == 1 or self.max_sources == 1: