Skip to content

Commit b6de267

Browse files
authored
Merge pull request #2351 from esdc-esac-esa-int/iso-1.0.0_issue2344_failing_remote_test
Issue #2344: test fixed, examples in doc tested and updated
2 parents 4c33104 + 76bc102 commit b6de267

File tree

8 files changed

+25
-35
lines changed

8 files changed

+25
-35
lines changed

astroquery/esa/iso/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
"""
2-
3-
@author: Jesus Salgado
4-
2+
=====================
3+
ISO Astroquery Module
4+
=====================
55
66
European Space Astronomy Centre (ESAC)
77
European Space Agency (ESA)
88
9-
Created on 15 July 2020
10-
119
"""
1210

1311
from astropy import config as _config

astroquery/esa/iso/core.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
"""
3-
4-
@author: Jesus Salgado
5-
3+
=====================
4+
ISO Astroquery Module
5+
=====================
66
77
European Space Astronomy Centre (ESAC)
88
European Space Agency (ESA)
99
10-
Created on 14 July 2020
11-
12-
1310
"""
1411
import re
1512
from astroquery.utils.tap.core import TapPlus

astroquery/esa/iso/tests/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
"""
3-
4-
@author: Jesus Salgado
5-
3+
=====================
4+
ISO Astroquery Module
5+
=====================
66
77
European Space Astronomy Centre (ESAC)
88
European Space Agency (ESA)
99
10-
Created on 15 July 2020
1110
"""

astroquery/esa/iso/tests/dummy_handler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
"""
2-
3-
@author: Jesus Salgado
4-
2+
=====================
3+
ISO Astroquery Module
4+
=====================
55
66
European Space Astronomy Centre (ESAC)
77
European Space Agency (ESA)
88
9-
Created on 15 July 2020
109
"""
1110

1211

astroquery/esa/iso/tests/dummy_tap_handler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
"""
3-
4-
@author: Jesus Salgado
5-
3+
=====================
4+
ISO Astroquery Module
5+
=====================
66
77
European Space Astronomy Centre (ESAC)
88
European Space Agency (ESA)
99
10-
Created on 15 July 2020
1110
"""
1211

1312
from ....utils.tap.model.taptable import TapTableMeta

astroquery/esa/iso/tests/setup_package.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
"""
3-
4-
@author: Jesus Salgado
5-
3+
=====================
4+
ISO Astroquery Module
5+
=====================
66
77
European Space Astronomy Centre (ESAC)
88
European Space Agency (ESA)
99
10-
Created on 15 July 2020
1110
"""
1211

1312
from __future__ import absolute_import

astroquery/esa/iso/tests/test_iso.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
"""
3-
4-
@author: Jesus Salgado
5-
3+
=====================
4+
ISO Astroquery Module
5+
=====================
66
77
European Space Astronomy Centre (ESAC)
88
European Space Agency (ESA)
99
10-
Created on 15 July 2020
1110
"""
1211

1312
import pytest
@@ -61,7 +60,7 @@ def test_get_postcard_link_verbose(self):
6160
@pytest.mark.remote_data
6261
def test_download_data(self):
6362
parameters = {'tdt': "40001501",
64-
'level': "DEFAULT_DATA_SET",
63+
'product_level': "DEFAULT_DATA_SET",
6564
'retrieval_type': "OBSERVATION",
6665
'filename': "file",
6766
'verbose': False}

docs/esa/iso.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ provided by this service, see section 'Getting Tables Details'.
105105
-rw-r--r-- idaops/0 14400 2005-12-23 12:02:55 ././ISO1601052542/EXTRAKON//psph80000203.fits
106106
-rw-r--r-- idaops/0 5599 2005-12-23 12:02:55 ././ISO1601052542/EXTRAKON//ppch80000203.gif
107107
-rw-r--r-- idaops/0 266240 2005-12-23 12:02:54 ././ISO1601052542/EXTRAKON//C10180000203.tar
108-
>>> tar.extract("././ISO1601052542/EXTRAKON//psph80000203.fits")
108+
>>> tar.extract("././ISO1648561466/EXTRAKON//psph80000203.fits")
109109
>>> tar.extractall()
110110
111111
'download_data' method invokes the data download of files from the ISO Data Archive, using the
@@ -350,7 +350,7 @@ Images can be displayed by using the following code:
350350
>>> from matplotlib.colors import LogNorm
351351
>>>
352352
>>> #We configure the plot to be interactive
353-
>>> %matplotlib widget
353+
>>> # matplotlib widget
354354
>>> plt.ion()
355355
>>> plt.imshow(image_data, cmap='Reds')
356356
>>> plt.colorbar()
@@ -422,7 +422,7 @@ And spectra can be displayed by using the following code:
422422
>>> lamb = specdata['WAVE'] * u.um
423423
>>> flux = specdata['FLUX'] * u.Unit('W cm-2 um-1')
424424
>>> spec = Spectrum1D(spectral_axis=lamb, flux=flux)
425-
>>> %matplotlib widget
425+
>>> # matplotlib widget
426426
>>> plt.ion()
427427
>>> f, ax = plt.subplots()
428428
>>> ax.step(spec.spectral_axis, spec.flux)

0 commit comments

Comments
 (0)