Skip to content

Commit

Permalink
Fix type annotations in geometry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Dec 8, 2023
1 parent 8805631 commit aee90a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyresample/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def get_bbox_lonlats(self, vertices_per_side: Optional[int] = None, force_clockw
lon_sides, lat_sides = self._reverse_boundaries(lon_sides, lat_sides)
return lon_sides, lat_sides

def _get_sides(self, coord_fun, vertices_per_side) -> tuple[list[np.ndarray], list[np.ndarray]:
def _get_sides(self, coord_fun, vertices_per_side) -> tuple[list[np.ndarray], list[np.ndarray]]:
"""Return the boundary sides."""
top_slice, right_slice, bottom_slice, left_slice = self._get_bbox_slices(vertices_per_side)
top_dim1, top_dim2 = coord_fun(data_slice=top_slice)
Expand All @@ -343,8 +343,7 @@ def _get_sides(self, coord_fun, vertices_per_side) -> tuple[list[np.ndarray], li
(left_dim1.squeeze(), left_dim2.squeeze())])
if hasattr(sides_dim1[0], 'compute') and da is not None:
sides_dim1, sides_dim2 = da.compute(sides_dim1, sides_dim2)
sides_dim1, sides_dim2 = self._filter_sides_nans(sides_dim1, sides_dim2)
return sides_dim1, sides_dim2
return self._filter_sides_nans(sides_dim1, sides_dim2)

def _filter_sides_nans(
self,
Expand Down

0 comments on commit aee90a1

Please sign in to comment.