Skip to content

Commit 6df7657

Browse files
authored
Merge pull request #164 from Caltech-IPAC/raen/issues/163/astropy-timeout
2 parents 0278982 + 448f00b commit 6df7657

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tutorials/spherex/spherex_cutouts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ from astropy.wcs import WCS
6060
# from repeatedly printing out warning notices related to alternate WCSs
6161
import logging
6262
logging.getLogger('astropy').setLevel(logging.ERROR)
63+
64+
# The time it takes to read SPHEREx files can exceed
65+
# astropy's default timeout limit. Increase it.
66+
from astropy.utils.data import conf
67+
conf.remote_timeout = 120
6368
```
6469

6570
## 4. Specify inputs and outputs

tutorials/spherex/spherex_intro.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ from astropy.coordinates import SkyCoord
6363
from astroquery.ipac.irsa import Irsa
6464
6565
from firefly_client import FireflyClient
66+
67+
# The time it takes to read SPHEREx files can exceed
68+
# astropy's default timeout limit. Increase it.
69+
from astropy.utils.data import conf
70+
conf.remote_timeout = 120
6671
```
6772

6873
## 5. Search for SPHEREx Spectral Image MEFs that overlap coordinates you are interested in

tutorials/spherex/spherex_psf.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ from astropy.coordinates import SkyCoord
6060
from astropy.io import fits
6161
from astropy.table import Table
6262
from astropy.wcs import WCS
63+
64+
# The time it takes to read SPHEREx files can exceed
65+
# astropy's default timeout limit. Increase it.
66+
from astropy.utils.data import conf
67+
conf.remote_timeout = 120
6368
```
6469

6570
## 4. Get SPHEREx Cutout

0 commit comments

Comments
 (0)