Skip to content

Commit 0de7f0e

Browse files
authored
Merge pull request #2067 from IPAC-SW/nasa_exoplanet_archive_2
Updates to nasa_exoplanet_archive module to make it compatible with Archive 2.0
2 parents 9696416 + 1fec091 commit 0de7f0e

38 files changed

+658
-5504
lines changed

CHANGES.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ heasarc
2828
^^^^^^^
2929

3030
- Added posibility to query limited time range. [#1988]
31-
- Add alternative instance of HEASARC Server, maintained by
31+
- Add alternative instance of HEASARC Server, maintained by
3232
INTEGRAL Science Data Center. [#1988]
3333

34+
nasa_exoplanet_archive
35+
^^^^^^^^^^^^^^^^^^^^^^
36+
37+
- Making module compatible with the NASA Exoplanet Archive 2.0 using TAP.
38+
release. Support for querying old tables (exoplanets, compositepars, and
39+
exomultpars) has been dropped. [#2067]
40+
3441

3542
Service fixes and enhancements
3643
------------------------------

astroquery/nasa_exoplanet_archive/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ class Conf(_config.ConfigNamespace):
1515
Configuration parameters for `astroquery.nasa_exoplanet_archive`.
1616
"""
1717

18-
url = _config.ConfigItem(
18+
url_api = _config.ConfigItem(
1919
"https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI",
2020
"URL for the NASA Exoplanet Archive API")
21+
url_tap = _config.ConfigItem(
22+
"https://exoplanetarchive.ipac.caltech.edu/TAP/",
23+
"URL for the NASA Exoplanet Archive TAP")
2124
timeout = _config.ConfigItem(
2225
600, "Time limit for requests from the NASA Exoplanet Archive servers")
2326
cache = _config.ConfigItem(False, "Should the requests be cached?")

astroquery/nasa_exoplanet_archive/core.py

Lines changed: 209 additions & 80 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
ERROR<br>
2-
Error Type: exoLookup call failure<br>
3-
Message: String not coordinate or object name in Exoplanet Archive, CDS, or NED
1+
aliasdis
2+
HD 209458 b
3+
2MASS J22031077+1853036 b
4+
BD+18 4917 b
5+
HIP 108859 b
6+
SAO 107623 b
7+
TYC 1688-01821-1 b
8+
V0376 Peg b
9+
WISE J220310.79+185303.3 b
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
aliasdis
2-
HD 209458 b
3-
2MASS J22031077+1853036 b
4-
BD+18 4917 b
5-
HIP 108859 b
6-
SAO 107623 b
7-
TYC 1688-01821-1 b
8-
V0376 Peg b
9-
WISE J220310.79+185303.3 b
2+
HD 209458
3+
2MASS J22031077+1853036
4+
BD+18 4917
5+
HIP 108859
6+
SAO 107623
7+
TYC 1688-01821-1
8+
V0376 Peg
9+
WISE J220310.79+185303.3
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
aliasdis
2-
HD 209458
3-
2MASS J22031077+1853036
4-
BD+18 4917
5-
HIP 108859
6-
SAO 107623
7-
TYC 1688-01821-1
8-
V0376 Peg
9-
WISE J220310.79+185303.3
2+
HD 136352
3+
2MASS J15214824-4819032
4+
CD-47 9919
5+
CPD-47 7075
6+
GJ 582
7+
HIP 75181
8+
HR 5699
9+
IRAS 15183-4808
10+
LHS 395
11+
SAO 225697
12+
TIC 136916387
13+
TOI-2011
14+
TYC 8298-01229-1
15+
nu 2 Lup
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
aliasdis
2-
HD 136352
3-
2MASS J15214824-4819032
4-
CD-47 9919
5-
CPD-47 7075
6-
GJ 582
7-
HIP 75181
8-
HR 5699
9-
IRAS 15183-4808
10-
LHS 395
11-
SAO 225697
12-
TYC 8298-01229-1
13-
nu 2 Lup
2+
HAT-P-11 b
3+
2MASS J19505021+4804508 b
4+
BD+47 2936 b
5+
HIP 97657 b
6+
K00003.01
7+
KIC 10748390 b
8+
KOI-3 b
9+
KOI-3.01
10+
Kepler-3 b
11+
TYC 3561-02092-1 b
12+
WISE J195050.38+480453.5 b
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
aliasdis
2-
HAT-P-7
3-
2MASS J19285935+4758102
4-
BD+47 2846
5-
KIC 10666592
6-
KOI-2
7-
Kepler-2
8-
TYC 3547-01402-1
9-
WISE J192859.33+475810.3
1+
ERROR<br>
2+
Error Type: exoLookup call failure<br>
3+
Message: Object not found by Exoplanet Archive, SIMBAD, or NED.

astroquery/nasa_exoplanet_archive/tests/data/aliastable_expect_7.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

astroquery/nasa_exoplanet_archive/tests/data/aliastable_expect_8.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)