Skip to content

Commit

Permalink
add Raises to XYXYMatch.__call__
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed May 17, 2024
1 parent dcaed93 commit 3589758
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tweakwcs/matchutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def __call__(self, refcat, imcat, tp_pscale=1.0, tp_units=None, **kwargs):
A tuple of two 1D `numpy.ndarray` containing indices of matched
sources in the ``refcat`` and ``imcat`` catalogs accordingly.
Raises
------
MatchSourceConfusionError
Multiple sources matched a single reference source. Try different
values for ``tolerance`` and ``separation`` to fix this error.
"""
# Check catalogs:
if not isinstance(refcat, astropy.table.Table):
Expand Down

0 comments on commit 3589758

Please sign in to comment.