Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: fix backward compatibility in preparation for release #509

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions pyvo/registry/rtcons.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ class Spatial(Constraint):

takes_sequence = True

def __init__(self, geom_spec, intersect="covers", order=6):
def __init__(self, geom_spec, order=6, intersect="covers"):
"""

Parameters
Expand All @@ -624,18 +624,19 @@ def __init__(self, geom_spec, intersect="covers", order=6):
SkyCoord and a float as a circle. Other types (proper
geometries or MOCPy objects) might be supported in the
future.
intersect : str, optional
Allows to specify the connection between the resource coverage
and the *geom_spec*. The possible values are 'covers' for services
that completely cover the *geom_spec* region, 'enclosed' for services
completely enclosed in the region and 'overlaps' for services which
coverage intersect the region.
order : int, optional
Non-MOC geometries are converted to MOCs before comparing
them to the resource coverage. By default, this constraint
uses order 6, which corresponds to about a degree of resolution
and is what RegTAP recommends as a sane default for the
order actually used for the coverages in the database.
intersect : str, optional
Allows to specify the connection between the resource coverage
and the *geom_spec*. The possible values are 'covers' for services
that completely cover the *geom_spec* region, 'enclosed' for services
completely enclosed in the region and 'overlaps' for services which
coverage intersect the region.

"""
def tomoc(s):
return _AsIs("MOC({}, {})".format(order, s))
Expand Down
Loading