From 6cffce7d0ce6d55ef931559fb4f0afc3c4eb616e Mon Sep 17 00:00:00 2001 From: Hugh Roxburgh Date: Thu, 19 Sep 2024 14:19:38 +0800 Subject: [PATCH] changing Vizier cache for offline mode --- tessreduce/catalog_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tessreduce/catalog_tools.py b/tessreduce/catalog_tools.py index e17e69d..839bb12 100755 --- a/tessreduce/catalog_tools.py +++ b/tessreduce/catalog_tools.py @@ -104,10 +104,10 @@ def Get_Catalogue_External(ra,dec,size,Catalog = 'gaia'): raise ValueError(f"{catalog} not recognised as a catalog. Available options: 'gaia', 'dist','ps1'") if Catalog == 'gaia': result = Vizier.query_region(c1, catalog=[catalog], - radius=Angle(size * pix_scale + 60, "arcsec"),column_filters={'Gmag':'<19'}) + radius=Angle(size * pix_scale + 60, "arcsec"),column_filters={'Gmag':'<19'},cache=False) else: result = Vizier.query_region(c1, catalog=[catalog], - radius=Angle(size * pix_scale + 60, "arcsec")) + radius=Angle(size * pix_scale + 60, "arcsec"),cache=False) no_targets_found_message = ValueError('Either no sources were found in the query region ' 'or Vizier is unavailable')