@@ -27,7 +27,7 @@ import YAXArrayBase
27
27
import ProgressMeter: Progress, next!, progress_pmap, progress_map
28
28
using YAXArrayBase
29
29
using DiskArrays: grid_offset, approx_chunksize, max_chunksize, RegularChunks,
30
- IrregularChunks, GridChunks, eachchunk, ChunkType
30
+ IrregularChunks, GridChunks, eachchunk, ChunkVector
31
31
using OffsetArrays: OffsetArray
32
32
using Dates
33
33
using DimensionalData: DimensionalData as DD
@@ -515,12 +515,12 @@ function makeinplace(f)
515
515
end
516
516
517
517
function to_chunksize (c:: RegularChunks , cs, _ = true )
518
- offset = if c. cs == cs
518
+ offset = if c. chunksize == cs
519
519
c. offset
520
520
else
521
521
0
522
522
end
523
- RegularChunks (cs, offset, c. s )
523
+ RegularChunks (cs, offset, c. arraysize )
524
524
end
525
525
function to_chunksize (c:: IrregularChunks , cs, allow_irregular= true )
526
526
fac = cs ÷ approx_chunksize (c)
@@ -988,13 +988,13 @@ function getCacheSizes(dc::DATConfig, loopchunksizes)
988
988
# Now add cache miss information for each input cube to every loop axis
989
989
cmisses = NamedTuple{
990
990
(:iloopax , :cs , :iscompressed , :innerleap , :preventpar ),
991
- Tuple{Int64,ChunkType ,Bool,Int64,Bool},
991
+ Tuple{Int64,ChunkVector ,Bool,Int64,Bool},
992
992
}[]
993
993
userchunks = Dict {Int,Int} ()
994
994
for (k, v) in loopchunksizes
995
995
ii = findAxis (k, dc. LoopAxes)
996
996
if ii != = nothing
997
- v isa ChunkType || error (" Loop chunks must be provided as ChunkType object" )
997
+ v isa ChunkVector || error (" Loop chunks must be provided as ChunkVector object" )
998
998
userchunks[ii] = v
999
999
end
1000
1000
end
0 commit comments