Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 30, 2024
1 parent cb2a8aa commit 32697d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocf_data_sampler/select/select_spatial_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def _get_idx_of_pixel_closest_to_poi(
x_index = da.get_index(x_dim)
y_index = da.get_index(y_dim)

closest_x = float(x_index.get_indexer([x], method="nearest")[0])
closest_y = float(y_index.get_indexer([y], method="nearest")[0])
closest_x = x_index.get_indexer([x], method="nearest")[0]
closest_y = y_index.get_indexer([y], method="nearest")[0]

return Location(x=closest_x, y=closest_y, coordinate_system="idx")

Expand Down

0 comments on commit 32697d8

Please sign in to comment.