Skip to content

Commit

Permalink
changing Vizier cache for offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoxu committed Sep 19, 2024
1 parent 02c06fc commit 6cffce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tessreduce/catalog_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6cffce7

Please sign in to comment.