Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Dec 13, 2024
1 parent 6f98781 commit 1183d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdaviz/configs/imviz/plugins/catalogs/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 1183d5d

Please sign in to comment.