Skip to content

Commit

Permalink
move redudant Gaia code for max sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Dec 5, 2024
1 parent 9806c6c commit 12af427
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jdaviz/configs/imviz/plugins/catalogs/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ def search(self, error_on_fail=False):
unit='deg')

elif self.catalog_selected == 'Gaia':
from astroquery.gaia import Gaia, conf
from astroquery.gaia import Gaia

Check warning on line 187 in jdaviz/configs/imviz/plugins/catalogs/catalogs.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/imviz/plugins/catalogs/catalogs.py#L187

Added line #L187 was not covered by tests

with conf.set_temp("ROW_LIMIT", self.max_sources):
Gaia.ROW_LIMIT = self.max_sources
sources = Gaia.query_object(skycoord_center, radius=zoom_radius,
columns=('source_id', 'ra', 'dec'))
Gaia.ROW_LIMIT = self.max_sources
sources = Gaia.query_object(skycoord_center, radius=zoom_radius,

Check warning on line 190 in jdaviz/configs/imviz/plugins/catalogs/catalogs.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/imviz/plugins/catalogs/catalogs.py#L189-L190

Added lines #L189 - L190 were not covered by tests
columns=('source_id', 'ra', 'dec')
)
self.app._catalog_source_table = sources
skycoord_table = SkyCoord(sources['ra'], sources['dec'], unit='deg')

Expand Down

0 comments on commit 12af427

Please sign in to comment.