Skip to content

Commit 37914ee

Browse files
tinuademargaretbsipocz
authored andcommitted
jplsbdb WIP
1 parent 162aad2 commit 37914ee

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/jplsbdb/jplsbdb.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The most simple query to obtain information for a specific Solar
4141
System small-body works as follows:
4242

4343
.. code-block:: python
44+
.. doctest-remote-data::
4445

4546
>>> from astroquery.jplsbdb import SBDB
4647
>>> sbdb = SBDB.query('3552')
@@ -56,6 +57,7 @@ schematic. Please consult the `Data Output section
5657
documentation to learn more about the meaning of the different output fields:
5758

5859
.. code-block:: python
60+
.. doctest-remote-data::
5961

6062
>>> print(SBDB.schematic(sbdb))
6163
+-+ object:
@@ -146,7 +148,7 @@ item:
146148

147149
.. code-block:: python
148150
149-
>>> sbdb['orbit']['moid_jup']
151+
>>> sbdb['orbit']['moid_jup'] # doctest: +REMOTE_DATA
150152
0.441 AU
151153
152154
Note that many of the items in the output dictionary are associated
@@ -157,7 +159,7 @@ orbit intersection distance of the target with respect to Jupiter
157159

158160
.. code-block:: python
159161
160-
>>> print(sbdb['orbit']['moid_jup'].to('km'))
162+
>>> print(sbdb['orbit']['moid_jup'].to('km')) # doctest: +REMOTE_DATA
161163
65972660.9787
162164
163165
The vast majority of parameter names are identical to those used in
@@ -185,14 +187,14 @@ the following query:
185187

186188
.. code-block:: python
187189
188-
>>> sbdb = SBDB.query('2018 AA*', neo_only=True)
190+
>>> sbdb = SBDB.query('2018 AA*', neo_only=True) # doctest: +REMOTE_DATA
189191
190192
Note that in case of a name search not the entire output is queries
191193
per target, but only a list of objects matching this pattern:
192194

193195
.. code-block:: python
194196
195-
>>> sbdb['list']
197+
>>> sbdb['list'] # doctest: +REMOTE_DATA
196198
OrderedDict([('pdes', ['2018 AA4', '2018 AA12']), ('name', ['(2018 AA4)', '(2018 AA12)'])])
197199
198200
Customizing your Query

0 commit comments

Comments
 (0)