Skip to content

Commit 2019702

Browse files
committed
MAINT: fix style and beautify docs
1 parent ee7158c commit 2019702

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

astroquery/esa/jwst/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ def download_files_from_program(self, proposal_id, *, product_type=None, verbose
10441044
Program or Proposal ID associated to the observations.
10451045
product_type : str or list, optional, default None
10461046
If the string or at least one element of the list is empty,
1047-
the value is replaced by None.
1047+
the value is replaced by None.
10481048
With None, all products will be downloaded.
10491049
Possible string values: 'thumbnail', 'preview', 'auxiliary', 'science' or 'info'.
10501050
Posible list values: any combination of string values.

astroquery/esa/jwst/tests/test_jwsttap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def test_download_files_from_program(self):
688688
dummyTapHandler = DummyTapHandler()
689689
jwst = JwstClass(tap_plus_handler=dummyTapHandler, data_handler=dummyTapHandler, show_messages=False)
690690
with pytest.raises(TypeError) as err:
691-
jwst.download_files_from_program()
691+
jwst.download_files_from_program()
692692
assert "missing 1 required positional argument: 'proposal_id'" in err.value.args[0]
693693

694694
def test_get_obs_products(self):

docs/esa/jwst/jwst.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ than get_product_list, it also supports product_type parameter as string or list
289289
Here product_type as list:
290290

291291
.. doctest-remote-data::
292-
292+
293293
>>> from astroquery.esa.jwst import Jwst
294294
>>> observation_id = 'jw01122001001_0210r_00001_nrs2'
295295
>>> results = Jwst.get_obs_products(observation_id=observation_id, cal_level=2, product_type=['science', 'preview'])
@@ -331,9 +331,12 @@ To query the data products associated with a certain Proposal ID and filtered by
331331
.. doctest-remote-data::
332332
333333
>>> from astroquery.esa.jwst import Jwst
334-
>>> observation_list = Jwst.download_files_from_program(proposal_id='6651', product_type='preview')
334+
>>> observation_list = Jwst.download_files_from_program(proposal_id='6651', product_type='preview') # doctest: +IGNORE_OUTPUT
335+
INFO: Query finished. [astroquery.utils.tap.core]
336+
INFO: Downloading products for Observation ID: jw06651001001_05201_00001_nis [astroquery.esa.jwst.core]
337+
INFO: Downloading products for Observation ID: jw06651002001_05201_00001_nis [astroquery.esa.jwst.core]
335338
>>> print(observation_list) # doctest: +IGNORE_OUTPUT
336-
[np.str_('jw06651001001_05201_00001_nis'), np.str_('jw06651002001_05201_00001_nis')]
339+
['jw06651001001_05201_00001_nis', 'jw06651002001_05201_00001_nis']
337340
338341
339342
1.5 Getting public tables

0 commit comments

Comments
 (0)