Skip to content

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Jan 5, 2024
1 parent 152f870 commit 48907b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tweakwcs/imalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ def overlap_matrix(images):
m[i, j] = area
return m


@deprecated("0.8.6")
def max_overlap_pair(images, enforce_user_order):
"""
Expand Down Expand Up @@ -906,7 +907,7 @@ def _max_overlap_pair(images, enforce_user_order):
-------
(im1, im2, overlap_area)
Returns a tuple of two images - elements of input ``images`` list and
the area of the overlap of the two images in steradians.
the area of the overlap of the two images in steradians.
When ``enforce_user_order`` is `True`, images are returned in the
order in which they appear in the input ``images`` list. When the
number of input images is smaller than two, ``im1`` and ``im2`` may
Expand All @@ -920,7 +921,7 @@ def _max_overlap_pair(images, enforce_user_order):

elif nimg == 1:
return images[0], None, None

Check warning on line 923 in tweakwcs/imalign.py

View check run for this annotation

Codecov / codecov/patch

tweakwcs/imalign.py#L923

Added line #L923 was not covered by tests

elif nimg == 2 or enforce_user_order:
# for the special case when only two images are provided
# return (refimage, image) in the same order as provided in 'images'.
Expand Down

0 comments on commit 48907b2

Please sign in to comment.