Skip to content

Commit

Permalink
timeout for MAST requests implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Mar 24, 2017
1 parent c1e9037 commit 0a6fe19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def download_catalog(self, ra_deg, dec_deg, rad_deg,
'max_records': int(max_sources),
'outputformat': 'VOTABLE',
'coordformat': 'FLOAT',
'ndetections': ('>%d' % max_mag)})
'ndetections': ('>%d' % max_mag)},
timeout=180)

# write query data into local file
outf = open('panstarrs.xml', 'wr')
Expand Down

0 comments on commit 0a6fe19

Please sign in to comment.