Skip to content

Commit 876856a

Browse files
committed
Remove tif saving tests for now
We can enable them later on main, when we have the interface to add the maximal size of the coarsest level, so that the depth of the pyramid is the same from in memory and from gdal.
1 parent 1b9a9a3 commit 876856a

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

Project.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ MakieCore = "20f20a25-4f0e-4fdf-b5d1-57303727442b"
1919
Observables = "510215fc-4207-5dde-b226-833fc4488ee2"
2020
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
2121
Proj = "c94c279d-25a6-4763-9509-64d165bea63e"
22+
Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689"
2223
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2324
YAXArrayBase = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
2425
YAXArrays = "c21b50f5-aa40-41ea-b809-c0f5e47bfa5c"
@@ -35,7 +36,7 @@ Aqua = "0.8"
3536
ArchGDAL = "0.10.4"
3637
CairoMakie = "0.12"
3738
Colors = "0.12"
38-
DimensionalData = "0.27.3, 0.28, 0.29"
39+
DimensionalData = "0.28, 0.29"
3940
DiskArrayEngine = "0.1.2"
4041
DiskArrayTools = "0.1.10"
4142
DiskArrays = "0.4.2"
@@ -48,6 +49,7 @@ MakieCore = "0.8.2"
4849
Observables = "0.5.5"
4950
OffsetArrays = "1.14"
5051
Proj = "1.7.1"
52+
Rasters = "0.11.8, 0.12, 0.13"
5153
Statistics = "1.10"
5254
Test = "1.10"
5355
TestItemRunner = "0.2.3"
@@ -62,10 +64,11 @@ ArchGDAL = "c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3"
6264
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
6365
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
6466
Extents = "411431e0-e8b7-467b-b5e0-f676ba4f2910"
67+
Rasters = "a3a2b9e3-a471-40c9-b274-f788e487c689"
6568
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
6669
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6770
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
6871
YAXArrayBase = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
6972

7073
[targets]
71-
test = ["Aqua", "ArchGDAL", "Colors", "Extents", "CairoMakie", "Statistics", "Test", "TestItemRunner", "YAXArrayBase"]
74+
test = ["Aqua", "ArchGDAL", "Colors", "Extents", "CairoMakie", "Rasters", "Statistics", "Test", "TestItemRunner", "YAXArrayBase"]

test/broadcast.jl

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
using PyramidScheme: PyramidScheme as PS
33
using DimensionalData
44
using Rasters
5-
data = zeros(2000,2000)
5+
#using ArchGDAL
6+
data = rand(2000,2000)
67
dd = DimArray(data, (X(11:2010), Y(101:2100)))
78
pyramid = PS.Pyramid(dd)
89
p0 = pyramid .- pyramid
@@ -14,11 +15,17 @@
1415
for l in p1.levels
1516
@test sum(l) == prod(size(l))
1617
end
17-
tname = tempname() * ".tif"
18-
r = Raster(dd)
19-
write(tname, r, driver="cog", force=true)
20-
ptif = Pyramid(tname)
18+
#tname = tempname() * ".tif"
19+
#r = Raster(dd)
20+
#write(tname, r, driver="cog", force=true)
21+
#ptif = Pyramid(tname)
22+
#ptif0 = ptif .- ptif
23+
#@test all(iszero, ptif0.base)
24+
#@test all(all.(iszero, ptif0.levels))
25+
26+
#pyr500 = Pyramid(dd)
2127
# This fails because the pyramids have different layers
22-
@test_broken p0mix = ptif .- pyramid
28+
#p0mix = ptif .- pyr500
29+
#@test all(iszero, p0mix.base)
2330

2431
end

0 commit comments

Comments
 (0)