Skip to content

Commit

Permalink
Fix zip type annotations in geometry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Nov 27, 2023
1 parent 47a4a44 commit 05f6d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyresample/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ def _get_bbox_elements(self, coord_fun, vertices_per_side: Optional[int] = None)

def _filter_bbox_nans(
self,
dim1_sides: list[np.ndarray],
dim2_sides: list[np.ndarray],
dim1_sides: tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray],
dim2_sides: tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray],
) -> tuple[list[np.ndarray], list[np.ndarray]]:
new_dim1_sides = []
new_dim2_sides = []
for dim1_side, dim2_side in zip(dim1_sides, dim2_sides):
for dim1_side, dim2_side in zip(dim1_sides, dim2_sides, strict=True):
is_valid_mask = ~(np.isnan(dim1_side) | np.isnan(dim2_side))
if not is_valid_mask.any():
raise ValueError("Can't compute swath bounding coordinates. At least one side is completely invalid.")
Expand Down

0 comments on commit 05f6d58

Please sign in to comment.