Skip to content

Commit

Permalink
Fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Jul 17, 2024
1 parent 2dd1963 commit cec7074
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tweakwcs/imalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,8 @@ def overlap_matrix(images):

if n_malformed:
log.warning(

Check warning on line 789 in tweakwcs/imalign.py

View check run for this annotation

Codecov / codecov/patch

tweakwcs/imalign.py#L789

Added line #L789 was not covered by tests
"MalformedPolygonError in spherical_geometry. Using "
"convex hull instead of multi_union. Alignment order "
"may be sub-optimal."
"MalformedPolygonError in spherical_geometry. Computed overlap "
"area is not accurate. Alignment order may be sub-optimal."
)

return m
Expand Down Expand Up @@ -1037,9 +1036,8 @@ def _max_overlap_image(refimage, images, enforce_user_order):

if n_malformed:
log.warning(

Check warning on line 1038 in tweakwcs/imalign.py

View check run for this annotation

Codecov / codecov/patch

tweakwcs/imalign.py#L1038

Added line #L1038 was not covered by tests
"MalformedPolygonError in spherical_geometry. Using "
"convex hull instead of multi_union. Alignment order "
"may be sub-optimal."
"MalformedPolygonError in spherical_geometry. Computed overlap "
"area is not accurate. Alignment order may be sub-optimal."
)

idx = np.argmax(overlap_area)
Expand Down

0 comments on commit cec7074

Please sign in to comment.