Skip to content

Commit 1dea6ac

Browse files
authored
Merge pull request #1970 from tinumide/esa-doc-cleanup
Esa documentation cleanup
2 parents 68d233a + 81f9ef2 commit 1dea6ac

File tree

6 files changed

+512
-409
lines changed

6 files changed

+512
-409
lines changed

astroquery/esa/hubble/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def cone_search(self, coordinates, radius, filename=None,
367367
"pl.main_science_plane='true' and 1=CONTAINS(POINT('ICRS', "
368368
f"pos.ra, pos.dec),CIRCLE('ICRS', {str(ra)}, {str(dec)}, {str(radius_in_grades)})) order "
369369
"by prop.proposal_id desc")
370-
print("type: " + str(type(query)))
370+
371371
if verbose:
372372
log.info(query)
373373
table = self.query_hst_tap(query=query, async_job=async_job,

docs/esa/hsa/hsa.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ Examples
2020
1. Getting Herschel data
2121
------------------------
2222

23-
.. doctest-remote-data::
23+
.. Skipping becuase of how long the download takes
24+
.. doctest-skip::
2425

2526
>>> from astroquery.esa.hsa import HSA
2627
>>>
27-
>>> HSA.download_data(observation_id='1342195355',retrieval_type='OBSERVATION', instrument_name='PACS') # doctest: +IGNORE_OUTPUT
28+
>>> HSA.download_data(observation_id='1342195355', retrieval_type='OBSERVATION',
29+
... instrument_name='PACS')
2830
Downloading URL http://archives.esac.esa.int/hsa/whsa-tap-server/data?&retrieval_type=OBSERVATION&observation_id=1342195355&instrument_name=PACS to 1342195355.tar ... [Done]
2931
'1342195355.tar'
3032

31-
This will download the product of the observation '1342195355' with the instrument 'PACS' and
33+
This will download the products of the observation '1342195355' with the instrument 'PACS' and
3234
it will store them in a tar called '1342195355.tar'. The parameters available are detailed in the API.
3335

3436
For more details of the parameters check the section 6 of the ``Direct Product Access using TAP`` in the
@@ -41,11 +43,12 @@ For more details about the products check:
4143
2. Getting Observation Products
4244
-------------------------------
4345

44-
.. doctest-remote-data::
46+
.. Skipping becuase of how long the download takes
47+
.. doctest-skip::
4548

4649
>>> from astroquery.esa.hsa import HSA
4750
>>>
48-
>>> HSA.get_observation('1342195355', instrument_name='PACS') # doctest: +IGNORE_OUTPUT
51+
>>> HSA.get_observation('1342195355', instrument_name='PACS')
4952
Downloading URL http://archives.esac.esa.int/hsa/whsa-tap-server/data?&retrieval_type=OBSERVATION&observation_id=1342195355&instrument_name=PACS to 1342195355.tar ... [Done]
5053
'1342195355.tar'
5154

@@ -245,4 +248,4 @@ Reference/API
245248
.. testcleanup::
246249

247250
>>> from astroquery.utils import cleanup_saved_downloads
248-
>>> cleanup_saved_downloads(['1342195355*', 'results.csv'])
251+
>>> cleanup_saved_downloads(['1342195355*', 'results.csv'])

0 commit comments

Comments
 (0)