Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Feb 16, 2024
1 parent 0325f77 commit 8235ace
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,8 @@ def test_interp_points__synthetic(self, tag_aop: str | None, shift_aop: bool) ->
arr = np.flipud(np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]).reshape((3, 3)))
transform = rio.transform.from_bounds(0, 0, 3, 3, 3, 3)
raster = gu.Raster.from_array(data=arr, transform=transform, crs=None, nodata=-9999)

# Define the AREA_OR_POINT attribute
raster.tags = {"AREA_OR_POINT": tag_aop}

# Check interpolation falls right on values for points (1, 1), (1, 2) etc...
Expand Down Expand Up @@ -1922,7 +1924,7 @@ def test_interp_points__synthetic(self, tag_aop: str | None, shift_aop: bool) ->
else:
raster_points = raster.interp_points(points, method="nearest", shift_area_or_point=shift_aop)

# Warnings should be raised when AREA_OR_POINT is None similarly, we ignore them from now on
# Warnings should be raised when AREA_OR_POINT is None everywhere, so we ignore them from now on
if tag_aop is None and shift_aop:
warnings.filterwarnings(
"ignore", category=UserWarning, message="Attribute AREA_OR_POINT undefined in self.tags*"
Expand Down

0 comments on commit 8235ace

Please sign in to comment.