Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhayes777 committed Dec 18, 2023
1 parent dcbb09b commit 3b4e467
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autoarray/structures/structure_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,10 @@ def wrapper(
grid_radial_scale = np.where(
grid_radii < grid_radial_minimum, grid_radial_minimum / grid_radii, 1.0
)
moved_grid = grid.with_new_array(
np.multiply(grid, grid_radial_scale[:, None])
)
moved_grid = np.multiply(grid, grid_radial_scale[:, None])

if hasattr(grid, "with_new_array"):
moved_grid = grid.with_new_array(moved_grid)

moved_grid[np.isnan(np.array(moved_grid))] = grid_radial_minimum

Expand Down

0 comments on commit 3b4e467

Please sign in to comment.