Skip to content

Commit

Permalink
DEBUG: unit test 7 - use longdouble
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Oct 15, 2024
1 parent 2fb3273 commit 2dd6972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drizzle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def estimate_pixel_scale_ratio(wcs_from, wcs_to, refpix_from=None, refpix_to=Non
"""
pscale_ratio = (_estimate_pixel_scale(wcs_to, refpix_to) /
_estimate_pixel_scale(wcs_from, refpix_from))
return pscale_ratio
return pscale_ratio.astype("float")


def _estimate_pixel_scale(wcs, refpix):
Expand Down Expand Up @@ -156,7 +156,7 @@ def _estimate_pixel_scale(wcs, refpix):
(l1 - l3) * (np.sin(_DEG2RAD * phi2) - np.sin(_DEG2RAD * phi4))
)
)
return np.sqrt(area).astype("float")
return np.sqrt(area)


def decode_context(context, x, y):
Expand Down

0 comments on commit 2dd6972

Please sign in to comment.