Skip to content

Commit 7e835a1

Browse files
authored
Merge pull request #3459 from esdc-esac-esa-int/ESA_hubble-issue3412_BUG_doctest_execution_is_stuck
2 parents 332e06b + 4a733e0 commit 7e835a1

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

docs/esa/hubble/hubble.rst

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -209,42 +209,7 @@ The following example uses the string definition of the calibration level ('PROD
209209
Length = 12965 rows
210210

211211

212-
As has been mentioned, these parameters are optional and it is not necessary to define all of them to execute this function, as the search will be adapted to the ones that are available.
213-
214-
.. doctest-remote-data::
215-
216-
>>> from astroquery.esa.hubble import ESAHubble
217-
>>> esahubble = ESAHubble()
218-
>>> result1 = esahubble.query_criteria(calibration_level = 'PRODUCT',
219-
... async_job = False,
220-
... output_file = 'output3.vot.gz')
221-
>>> result2 = esahubble.query_criteria(data_product_type = 'image',
222-
... intent='SCIENCE',
223-
... async_job = False,
224-
... output_file = 'output4.vot.gz')
225-
>>> result3 = esahubble.query_criteria(data_product_type = 'timeseries',
226-
... async_job = False,
227-
... output_file = 'output5.vot.gz')
228-
229-
If no criteria are specified to limit the selection, this function will retrieve all the observations.
230-
231-
.. doctest-remote-data::
232-
233-
>>> from astroquery.esa.hubble import ESAHubble
234-
>>> esahubble = ESAHubble()
235-
>>> result = esahubble.query_criteria(async_job = False, verbose = True) # doctest: +IGNORE_OUTPUT
236-
INFO: select o.*, p.calibration_level, p.data_product_type, pos.ra, pos.dec from ehst.observation AS o JOIN ehst.plane as p on o.observation_uuid=p.observation_uuid JOIN ehst.position as pos on p.plane_id = pos.plane_id [astroquery.esa.hubble.core]
237-
Launched query: 'select TOP 2000 o.*, p.calibration_level, p.data_product_type, pos.ra, pos.dec from ehst.observation AS o JOIN ehst.plane as p on o.observation_uuid=p.observation_uuid JOIN ehst.position as pos on p.plane_id = pos.plane_id'
238-
------>http
239-
host = hst.esac.esa.int:80
240-
context = /tap-server/tap//sync
241-
Content-type = application/x-www-form-urlencoded
242-
200 200
243-
[('Date', 'Mon, 25 Jul 2022 16:21:18 GMT'), ('Server', 'Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.4.16 mod_jk/1.2.48'), ('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate'), ('Pragma', 'no-cache'), ('Expires', '0'), ('X-XSS-Protection', '1; mode=block'), ('X-Frame-Options', 'SAMEORIGIN'), ('X-Content-Type-Options', 'nosniff'), ('Content-Encoding', 'gzip'), ('Content-Disposition', 'attachment;filename="1658766078997O-result.vot"'), ('Content-Type', 'application/x-votable+xml'), ('Set-Cookie', 'JSESSIONID=7098EC515E7A2240E6F3129D23564139; Path=/; HttpOnly'), ('Connection', 'close'), ('Transfer-Encoding', 'chunked')]
244-
Retrieving sync. results...
245-
Query finished.
246-
247-
This last example will provide the ADQL query based on the criteria defined by the user.
212+
As it has been mentioned, these parameters are optional and it is not necessary to define all of them to execute this function, as the search will be adapted to the ones that are available.
248213

249214
.. doctest-remote-data::
250215

@@ -434,7 +399,7 @@ The first step is to query eHST Server to retrieve them. For instance, for obser
434399
>>> from astroquery.esa.hubble import ESAHubble
435400
>>> esahubble = ESAHubble()
436401
>>> table = esahubble.get_associated_files(observation_id='w0ji0v01t')
437-
>>> print(result) # doctest: +IGNORE_OUTPUT
402+
>>> print(table) # doctest: +IGNORE_OUTPUT
438403
filename calibration_level type size_uncompressed
439404
object object object object
440405
------------------ ----------------- --------- -----------------

0 commit comments

Comments
 (0)