Skip to content

Commit

Permalink
bugfix extent calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 10, 2023
1 parent 5144711 commit 48193ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ end
@test cea == resampled
# There is some floating point error here after Rasters -> GDAL -> Rasterss...
# Should we correct it by detecting almost identical extent and using the original?
@test_broken extent(cea) = extent(resampled)
@test_broken extent(cea) == extent(resampled)
end

@testset "only `res` kw changes the array size predictably" begin
Expand All @@ -581,7 +581,7 @@ end
@test crs(cea) == crs(resampled)
@test size(dims(resampled, (X, Y))) == size(dims(cea, (X, Y))) .* 2
# GDAL fp error see above
@test_broken extent(cea) = extent(resampled)
@test_broken extent(cea) == extent(resampled)
resampled = resample(cea; res=(res, 2res))
@test size(dims(resampled, (X, Y))) == (size(cea, X) .* 2, size(cea, Y))
resampled = resample(cea; res=(X(2res), Y(res)))
Expand Down

0 comments on commit 48193ae

Please sign in to comment.