Skip to content

Commit

Permalink
Remove zip strict usage for Python 3.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Nov 27, 2023
1 parent 04a2772 commit 850ec28
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: tuple[np.ndarray, ...],
dim2_sides: tuple[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, strict=True):
for dim1_side, dim2_side in zip(dim1_sides, dim2_sides):
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 850ec28

Please sign in to comment.