Skip to content

Commit d0ecb45

Browse files
committed
update the host info in download_data docstring
1 parent 8be084d commit d0ecb45

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
@@ -784,7 +784,7 @@ def _guess_host(self, host):
784784
return 'aws'
785785
return 'heasarc'
786786

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

0 commit comments

Comments
 (0)