Skip to content

Commit ce674be

Browse files
Jammy2211Jammy2211
authored andcommitted
another move
1 parent 2e20265 commit ce674be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoarray/inversion/pixelization/border_relocator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ def relocated_grid_via_ellipse_border_from(grid, origin, a, b, phi, xp=np, eps=1
284284
Numerical safety epsilon.
285285
"""
286286

287-
return grid
288-
289287
# shift to origin
290288
dy = grid[:, 0] - origin[0]
291289
dx = grid[:, 1] - origin[1]
@@ -313,6 +311,8 @@ def relocated_grid_via_ellipse_border_from(grid, origin, a, b, phi, xp=np, eps=1
313311

314312
moved = xp.stack([origin[0] + dy2, origin[1] + dx2], axis=1)
315313

314+
return grid
315+
316316
return xp.where(outside[:, None], moved, grid)
317317

318318

0 commit comments

Comments
 (0)