Skip to content

Commit

Permalink
lint error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Apr 2, 2024
1 parent b9738be commit d3d1817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ def project(self, bbox: types.BBox) -> types.Grid:

# Find the actual coordinates of the first or last point of the bounding box
# (bbox) based on the positive and negative scale in the actual Earth Engine
# (EE) image. Since EE bounding boxes can be flipped (negative scale), we
# (EE) image. Since EE bounding boxes can be flipped (negative scale), we
# cannot determine the origin (transform translation) simply by identifying
# the min and max extents. Instead, we calculate the translation by
# considering the direction of scaling (positive or negative) along both
# considering the direction of scaling (positive or negative) along both
# the x and y axes.
translateX = self.scale_x * x_start + (x_min if self.scale_x > 0 else x_max)
translateY = self.scale_y * y_start + (y_min if self.scale_y > 0 else y_max)
Expand Down

0 comments on commit d3d1817

Please sign in to comment.