Skip to content

Commit 8d29aac

Browse files
committed
Fix failing docs examples
1 parent f70ea9f commit 8d29aac

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

docs/ipac/nasa_exoplanet_archive/nasa_exoplanet_archive.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ For example, a full table can be queried as follows:
7575
<QTable masked=True length=9564>
7676
kepid kepoi_name kepler_name ... koi_fittype koi_score sky_coord
7777
... deg,deg
78-
int64 str9 str15 ... str7 float64 object
78+
int64 str9 str14 ... str7 float64 object
7979
-------- ---------- ------------ ... ----------- --------- -------------------
8080
10797460 K00752.01 Kepler-227 b ... LS+MCMC 1.0 291.93423,48.141651
8181
10797460 K00752.02 Kepler-227 c ... LS+MCMC 0.969 291.93423,48.141651
@@ -99,33 +99,31 @@ In this section, we demonstrate
9999

100100
>>> from astroquery.ipac.nexsci.nasa_exoplanet_archive import NasaExoplanetArchive
101101
>>> NasaExoplanetArchive.query_criteria(table="pscomppars", select="count(*)",
102-
... where="disc_facility like '%TESS%'")
102+
... where="disc_facility like '%TESS%'") # doctest: +IGNORE_OUTPUT
103103
<QTable masked=True length=1>
104104
count(*)
105105
int32
106106
--------
107107
131
108108

109109

110-
2. The list of confirmed planets discovered by TESS and their host star coordinates:
110+
2. The list of 10 confirmed planets discovered by TESS and their host star coordinates:
111111

112112
.. doctest-remote-data::
113113

114114
>>> from astroquery.ipac.nexsci.nasa_exoplanet_archive import NasaExoplanetArchive
115-
>>> NasaExoplanetArchive.query_criteria(table="pscomppars", select="pl_name,ra,dec",
115+
>>> NasaExoplanetArchive.query_criteria(table="pscomppars", select="top 10 pl_name,ra,dec",
116116
... where="disc_facility like '%TESS%'")
117-
<QTable masked=True length=131>
117+
<QTable masked=True length=10>
118118
pl_name ra dec sky_coord
119119
deg deg deg,deg
120-
str15 float64 float64 object
120+
str13 float64 float64 object
121121
------------- ----------- ----------- -----------------------
122122
WD 1856+534 b 284.415675 53.5090244 284.415675,53.5090244
123+
TOI-1201 b 42.2476999 -14.5372835 42.2476999,-14.5372835
123124
HD 213885 b 338.9837166 -59.864829 338.9837166,-59.864829
124125
HD 219666 b 349.5592665 -56.9039857 349.5592665,-56.9039857
125126
... ... ... ...
126-
TOI-257 b 47.5172608 -50.8322632 47.5172608,-50.8322632
127-
HD 5278 b 12.5467785 -83.7437671 12.5467785,-83.7437671
128-
LHS 1478 b 44.3388743 76.5514045 44.3388743,76.5514045
129127

130128

131129
3. The list of confirmed planets discovered using microlensing that have data available in the archive:
@@ -134,7 +132,7 @@ In this section, we demonstrate
134132

135133
>>> from astroquery.ipac.nexsci.nasa_exoplanet_archive import NasaExoplanetArchive
136134
>>> NasaExoplanetArchive.query_criteria(
137-
... table="pscomppars", where="discoverymethod like 'Microlensing'")
135+
... table="pscomppars", where="discoverymethod like 'Microlensing'") # doctest: +IGNORE_OUTPUT
138136
<QTable masked=True length=108>
139137
pl_name pl_letter ... htm20 sky_coord
140138
... deg,deg
@@ -158,7 +156,7 @@ In this section, we demonstrate
158156
>>> from astroquery.ipac.nexsci.nasa_exoplanet_archive import NasaExoplanetArchive
159157
>>> NasaExoplanetArchive.query_criteria(
160158
... table="pscomppars", where="hostname like 'Kepler%'", order="hostname")
161-
<QTable masked=True length=2369>
159+
<QTable masked=True length=2370>
162160
pl_name pl_letter hostname ... htm20 sky_coord
163161
... deg,deg
164162
str14 str1 str12 ... int32 object

0 commit comments

Comments
 (0)