Skip to content

Commit 432617e

Browse files
committed
adding individual troubleshooting blocks for caches
1 parent a20a0c4 commit 432617e

File tree

36 files changed

+507
-10
lines changed

36 files changed

+507
-10
lines changed

docs/atomic/atomic.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ the atomic package takes care to support all spectral units.
4040
199.0122 C IV E1 ... 1/2-* 157000000.0 0.00 - 502481.80
4141

4242

43+
Troubleshooting
44+
===============
45+
46+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
47+
48+
.. code-block:: python
49+
50+
>>> from astroquery.atomic import AtomicLineList
51+
>>> AtomicLineList.clear_cache()
52+
53+
If this function is unavailable, upgrade your version of astroquery.
54+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
55+
56+
4357
Reference/API
4458
=============
4559

docs/casda/casda.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,21 @@ is shown below:
194194
>>> filelist = casda.download_files(url_list, savedir='/tmp')
195195

196196

197+
Troubleshooting
198+
===============
199+
200+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
201+
202+
.. code-block:: python
203+
204+
>>> from astroquery.casda import Casda
205+
>>> Casda.clear_cache()
206+
207+
If this function is unavailable, upgrade your version of astroquery.
208+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
209+
210+
211+
197212
Reference/API
198213
=============
199214

docs/dace/dace.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ If you need to get radial velocities data for an object you can do the following
3131
Length = 600 rows
3232

3333

34+
Troubleshooting
35+
===============
36+
37+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
38+
39+
.. code-block:: python
40+
41+
>>> from astroquery.dace import Dace
42+
>>> Dace.clear_cache()
43+
44+
If this function is unavailable, upgrade your version of astroquery.
45+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
46+
47+
3448
Reference/API
3549
=============
3650

docs/esa/hsa/hsa.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,20 @@ After obtaining the desire ID, download the product of the observation '13422050
238238
'1342205057.tar'
239239

240240

241+
Troubleshooting
242+
===============
243+
244+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
245+
246+
.. code-block:: python
247+
248+
>>> from astroquery.esa.hsa import HSA
249+
>>> HSA.clear_cache()
250+
251+
If this function is unavailable, upgrade your version of astroquery.
252+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
253+
254+
241255
Reference/API
242256
=============
243257

docs/esa/iso/iso.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,20 @@ And spectra can be displayed by using the following code:
399399
:alt: Dynamic exploration of ISO spectra in python
400400

401401

402+
Troubleshooting
403+
===============
404+
405+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
406+
407+
.. code-block:: python
408+
409+
>>> from astroquery.esa.iso import ISO
410+
>>> ISO.clear_cache()
411+
412+
If this function is unavailable, upgrade your version of astroquery.
413+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
414+
415+
402416
Reference/API
403417
=============
404418

docs/esa/xmm_newton/xmm_newton.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,21 @@ The EPIC metadata can be found in four tables in the XSA TAP:
194194

195195
This will return the metadata within the four TAP tables in four `~astropy.table.Table` for the given target.
196196

197+
198+
Troubleshooting
199+
===============
200+
201+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
202+
203+
.. code-block:: python
204+
205+
>>> from astroquery.esa.xmm_newton import XMMNewton
206+
>>> XMMNewton.clear_cache()
207+
208+
If this function is unavailable, upgrade your version of astroquery.
209+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
210+
211+
197212
Reference/API
198213
=============
199214

docs/eso/eso.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,20 @@ To force the retrieval of data that are present in the destination directory, us
383383
in the call to :meth:`~astroquery.eso.EsoClass.retrieve_data`.
384384

385385

386+
Troubleshooting
387+
===============
388+
389+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
390+
391+
.. code-block:: python
392+
393+
>>> from astroquery.eso import Eso
394+
>>> Eso.clear_cache()
395+
396+
If this function is unavailable, upgrade your version of astroquery.
397+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
398+
399+
386400
Reference/API
387401
=============
388402

docs/fermi/fermi.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,27 @@ centered on M 31 for the energy range 1 to 100 GeV for the first day in 2013.
1010

1111
.. doctest-remote-data::
1212

13-
>>> from astroquery import fermi
14-
>>> result = fermi.FermiLAT.query_object('M31', energyrange_MeV='1000, 100000',
13+
>>> from astroquery.fermi import FermiLAT
14+
>>> result = FermiLAT.query_object('M31', energyrange_MeV='1000, 100000',
1515
... obsdates='2013-01-01 00:00:00, 2013-01-02 00:00:00')
1616
>>> print(result) # doctest: +IGNORE_OUTPUT
1717
['https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L210111120827756AAA3A88_PH00.fits',
1818
'https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L210111120827756AAA3A88_SC00.fits']
1919

2020

21+
Troubleshooting
22+
===============
23+
24+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
25+
26+
.. code-block:: python
27+
28+
>>> from astroquery.fermi import FermiLAT
29+
>>> FermiLAT.clear_cache()
30+
31+
If this function is unavailable, upgrade your version of astroquery.
32+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
33+
2134

2235
Reference/API
2336
=============

docs/gama/gama.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ first 100 spectroscopic objects in the database:
5050
1031448324500121600 SDSS 1 212.70039 ... 0.05 0 0
5151
Length = 100 rows
5252

53+
54+
Troubleshooting
55+
===============
56+
57+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
58+
59+
.. code-block:: python
60+
61+
>>> from astroquery.gama import GAMA
62+
>>> GAMA.clear_cache()
63+
64+
If this function is unavailable, upgrade your version of astroquery.
65+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
66+
67+
5368
Reference/API
5469
=============
5570

docs/heasarc/heasarc.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,20 @@ tables listing the most recent INTEGRAL data.
284284
Length = 1601 rows
285285

286286

287+
Troubleshooting
288+
===============
289+
290+
If you are repeatedly getting failed queries, or bad/out-of-date results, try clearing your cache:
291+
292+
.. code-block:: python
293+
294+
>>> from astroquery.heasarc import Heasarc
295+
>>> Heasarc.clear_cache()
296+
297+
If this function is unavailable, upgrade your version of astroquery.
298+
The `clear_cache` function was introduced in version 0.4.7.dev8479.
299+
300+
287301
Reference/API
288302
=============
289303

0 commit comments

Comments
 (0)