Skip to content

Commit 2a3cf51

Browse files
committed
Fixup doctest example
1 parent 301ac9d commit 2a3cf51

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

docs/linelists/jplspec/jplspec.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ what each setting yields:
4646
... molecule="28001 CO",
4747
... get_query_payload=False)
4848
>>> response.pprint(max_lines=10)
49-
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN' QN" Lab
50-
MHz MHz nm2 MHz 1 / cm
49+
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN' QN" Lab
50+
MHz MHz nm2 MHz 1 / cm
5151
------------ ------ -------- --- ---------- --- ----- ----- --- --- -----
5252
115271.2018 0.0005 -5.0105 2 0.0 3 28001 101 1 0 True
5353
230538.0 0.0005 -4.1197 2 3.845 5 28001 101 2 1 True
@@ -69,7 +69,7 @@ The following example, with ``get_query_payload = True``, returns the payload:
6969
... molecule="28001 CO",
7070
... get_query_payload=True)
7171
>>> print(response)
72-
[('MinNu', 100.0), ('MaxNu', 1000.0), ('MaxLines', 2000), ('UnitNu', 'GHz'), ('StrLim', -500), ('Mol', '28001 CO')]
72+
[('Mol', ('28001 CO',))]
7373

7474
The units of the columns of the query can be displayed by calling
7575
``response.info``:
@@ -82,19 +82,19 @@ The units of the columns of the query can be displayed by calling
8282
... molecule="28001 CO")
8383
>>> print(response.info)
8484
<Table length=91>
85-
name dtype unit
85+
name dtype unit
8686
----- ------- -------
8787
FREQ float64 MHz
8888
ERR float64 MHz
8989
LGINT float64 nm2 MHz
90-
DR int64
90+
DR int64
9191
ELO float64 1 / cm
92-
GUP int64
93-
TAG int64
94-
QNFMT int64
95-
QN' int64
96-
QN" int64
97-
Lab bool
92+
GUP int64
93+
TAG int64
94+
QNFMT int64
95+
QN' int64
96+
QN" int64
97+
Lab bool
9898
<BLANKLINE>
9999

100100
These come in handy for converting to other units easily, an example using a
@@ -103,8 +103,8 @@ simplified version of the data above is shown below:
103103
.. doctest-remote-data::
104104

105105
>>> response['FREQ', 'ERR', 'ELO'].pprint(max_lines=10)
106-
FREQ ERR ELO
107-
MHz MHz 1 / cm
106+
FREQ ERR ELO
107+
MHz MHz 1 / cm
108108
------------ ------ ----------
109109
115271.2018 0.0005 0.0
110110
230538.0 0.0005 3.845
@@ -226,8 +226,8 @@ to retrieve data from JPLSpec via astroquery.
226226
>>> print(f"Retrieved {len(table)} lines for CO")
227227
Retrieved 91 lines for CO
228228
>>> table[:5].pprint()
229-
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN' QN" Lab
230-
MHz MHz nm2 MHz 1 / cm
229+
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN' QN" Lab
230+
MHz MHz nm2 MHz 1 / cm
231231
----------- ------ ------- --- ------- --- ----- ----- --- --- ----
232232
115271.2018 0.0005 -5.0105 2 0.0 3 28001 101 1 0 True
233233
230538.0 0.0005 -4.1197 2 3.845 5 28001 101 2 1 True
@@ -272,8 +272,8 @@ to query these directly.
272272
... molecule="H2O",
273273
... parse_name_locally=True)
274274
>>> result.pprint(max_lines=10)
275-
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN'1 QN"1 QN'2 QN"2 QN'3 QN"3 QN'4 QN"4 Lab
276-
MHz MHz nm2 MHz 1 / cm
275+
FREQ ERR LGINT DR ELO GUP TAG QNFMT QN'1 QN"1 QN'2 QN"2 QN'3 QN"3 QN'4 QN"4 Lab
276+
MHz MHz nm2 MHz 1 / cm
277277
------------ ------ -------- --- --------- --- ----- ----- ---- ---- ---- ---- ---- ---- ---- ---- -----
278278
8006.5805 2.851 -18.6204 3 6219.6192 45 18003 1404 22 21 4 7 18 15 0 0 False
279279
12478.2535 0.2051 -13.1006 3 3623.7652 31 18003 1404 15 16 7 4 9 12 0 0 False
@@ -375,7 +375,7 @@ If you are repeatedly getting failed queries, or bad/out-of-date results, try cl
375375
>>> from astroquery.linelists.jplspec import JPLSpec
376376
>>> JPLSpec.clear_cache()
377377
378-
If this function is unavailable, upgrade your version of astroquery.
378+
If this function is unavailable, upgrade your version of astroquery.
379379
The ``clear_cache`` function was introduced in version 0.4.7.dev8479.
380380

381381

0 commit comments

Comments
 (0)