Skip to content

Commit

Permalink
DOC: update doctest result to pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Nov 16, 2024
1 parent bc31fc4 commit 7f7679b
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions docs/registry/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ 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 ...
<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:

Expand All @@ -174,13 +175,14 @@ Astropy Quantities are also supported for the radius angle of a SkyCoord-defined
>>> 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 ...
<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 7f7679b

Please sign in to comment.