Skip to content

Commit eb052f6

Browse files
committed
update the host info in download_data docstring
1 parent a3b86e8 commit eb052f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

astroquery/heasarc/core.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def _guess_host(self, host):
783783
return 'aws'
784784
return 'heasarc'
785785

786-
def download_data(self, links, host='heasarc', location='.'):
786+
def download_data(self, links, host=None, location='.'):
787787
"""Download data products in links with a choice of getting the
788788
data from either the heasarc server, sciserver, or the cloud in AWS.
789789
@@ -792,8 +792,9 @@ def download_data(self, links, host='heasarc', location='.'):
792792
----------
793793
links : `astropy.table.Table` or `astropy.table.Row`
794794
The result from locate_data
795-
host : str
796-
The data host. The options are: heasarc (default), sciserver, aws.
795+
host : str or None
796+
The data host. The options are: None (default), heasarc, sciserver, aws.
797+
If None, the host is guessed based on the environment.
797798
If host == 'sciserver', data is copied from the local mounted
798799
data drive.
799800
If host == 'aws', data is downloaded from Amazon S3 Open

0 commit comments

Comments
 (0)