Skip to content

Commit 8a9a797

Browse files
Jammy2211Jammy2211
authored andcommitted
erm
1 parent 54133f2 commit 8a9a797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoarray/inversion/pixelization/border_relocator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def relocated_grid_via_ellipse_border_from(grid, origin, a, b, phi, xp=np, eps=1
298298
# ellipse radius in normalized coords
299299

300300
q = (xprime / a) ** 2 + (yprime / b) ** 2
301-
301+
q = xp.where(xp.isfinite(q), q, 1.0)
302302
outside = q > 1.0
303303
q = xp.where(xp.isfinite(q), q, 1.0)
304304
scale = 1.0 / xp.sqrt(xp.maximum(q, 1.0))

0 commit comments

Comments
 (0)