@@ -27,7 +27,7 @@ import YAXArrayBase
2727import ProgressMeter: Progress, next!, progress_pmap, progress_map
2828using YAXArrayBase
2929using DiskArrays: grid_offset, approx_chunksize, max_chunksize, RegularChunks,
30- IrregularChunks, GridChunks, eachchunk, ChunkType
30+ IrregularChunks, GridChunks, eachchunk, ChunkVector
3131using OffsetArrays: OffsetArray
3232using Dates
3333using DimensionalData: DimensionalData as DD
@@ -515,12 +515,12 @@ function makeinplace(f)
515515end
516516
517517function to_chunksize (c:: RegularChunks , cs, _ = true )
518- offset = if c. cs == cs
518+ offset = if c. chunksize == cs
519519 c. offset
520520 else
521521 0
522522 end
523- RegularChunks (cs, offset, c. s )
523+ RegularChunks (cs, offset, c. arraysize )
524524end
525525function to_chunksize (c:: IrregularChunks , cs, allow_irregular= true )
526526 fac = cs ÷ approx_chunksize (c)
@@ -988,13 +988,13 @@ function getCacheSizes(dc::DATConfig, loopchunksizes)
988988 # Now add cache miss information for each input cube to every loop axis
989989 cmisses = NamedTuple{
990990 (:iloopax , :cs , :iscompressed , :innerleap , :preventpar ),
991- Tuple{Int64,ChunkType ,Bool,Int64,Bool},
991+ Tuple{Int64,ChunkVector ,Bool,Int64,Bool},
992992 }[]
993993 userchunks = Dict {Int,Int} ()
994994 for (k, v) in loopchunksizes
995995 ii = findAxis (k, dc. LoopAxes)
996996 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" )
998998 userchunks[ii] = v
999999 end
10001000 end
0 commit comments