diff --git a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py index 97b92290b3..82991dbd48 100644 --- a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py +++ b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py @@ -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 - 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, + columns=('source_id', 'ra', 'dec') + ) self.app._catalog_source_table = sources skycoord_table = SkyCoord(sources['ra'], sources['dec'], unit='deg')