Skip to content

Commit

Permalink
Merge pull request astropy#620 from bsipocz/DOC_update_doc_example
Browse files Browse the repository at this point in the history
DOC: update doctest result to pass CI
  • Loading branch information
bsipocz authored Nov 21, 2024
2 parents bc31fc4 + f9211e3 commit 0cafd6f
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions docs/registry/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,29 +158,31 @@ And to look for tap resources *in* a specific cone, you would do

>>> from astropy.coordinates import SkyCoord
>>> registry.search(registry.Freetext("Wolf-Rayet"),
... registry.Spatial((SkyCoord("23d +3d"), 3), intersect="enclosed"))
<DALResultsTable length=2>
ivoid ...
...
object ...
------------------------------- ...
ivo://cds.vizier/j/a+a/688/a104 ...
ivo://cds.vizier/j/apj/938/73 ...
... registry.Spatial((SkyCoord("23d +3d"), 3), intersect="enclosed")) # doctest: +IGNORE_OUTPUT
<DALResultsTable length=3>
ivoid ...
...
object ...
----------------------------------- ...
ivo://cds.vizier/j/a+a/688/a104 ...
ivo://cds.vizier/j/apj/938/73 ...
ivo://cds.vizier/j/other/pasa/41.84 ...

Astropy Quantities are also supported for the radius angle of a SkyCoord-defined circular region:

.. doctest-remote-data::

>>> from astropy import units as u
>>> registry.search(registry.Freetext("Wolf-Rayet"),
... registry.Spatial((SkyCoord("23d +3d"), 180*u.Unit('arcmin')), intersect="enclosed"))
<DALResultsTable length=2>
ivoid ...
...
object ...
------------------------------- ...
ivo://cds.vizier/j/a+a/688/a104 ...
ivo://cds.vizier/j/apj/938/73 ...
... registry.Spatial((SkyCoord("23d +3d"), 180*u.Unit('arcmin')), intersect="enclosed")) # doctest: +IGNORE_OUTPUT
<DALResultsTable length=3>
ivoid ...
...
object ...
----------------------------------- ...
ivo://cds.vizier/j/a+a/688/a104 ...
ivo://cds.vizier/j/apj/938/73 ...
ivo://cds.vizier/j/other/pasa/41.84 ...

Where ``intersect`` can take the following values:
* 'covers' is the default and returns resources that cover the geometry provided,
Expand Down

0 comments on commit 0cafd6f

Please sign in to comment.