From 12af427f3f0f2fa457ea119c3145c43e148f63e0 Mon Sep 17 00:00:00 2001 From: gibsongreen Date: Thu, 5 Dec 2024 10:06:46 -0500 Subject: [PATCH] move redudant Gaia code for max sources --- jdaviz/configs/imviz/plugins/catalogs/catalogs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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')