Skip to content

Commit 7aec69c

Browse files
authored
Merge pull request #493 from JuliaDataCubes/fc/renameda
Reflect renamings in DiskArrays
2 parents 348f26b + b08f112 commit 7aec69c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "YAXArrays"
22
uuid = "c21b50f5-aa40-41ea-b809-c0f5e47bfa5c"
33
authors = ["Fabian Gans <[email protected]>"]
4-
version = "0.6.0"
4+
version = "0.6.1"
55

66
[deps]
77
CFTime = "179af706-886a-5703-950a-314cd64e0468"
@@ -35,8 +35,8 @@ YAXArrayBase = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
3535
CFTime = "0.0, 0.1"
3636
DataStructures = "0.17, 0.18"
3737
DimensionalData = "0.27, 0.28, 0.29"
38-
DiskArrayTools = "0.1"
39-
DiskArrays = "0.3, 0.4"
38+
DiskArrayTools = "0.1.12"
39+
DiskArrays = "0.3, 0.4.10"
4040
DocStringExtensions = "0.8, 0.9"
4141
Glob = "1.3"
4242
Interpolations = "0.12, 0.13, 0.14, 0.15"

src/Cubes/Cubes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ end
241241
interpret_cubechunks(cs::NTuple{N,Int},cube) where N = DiskArrays.GridChunks(getdata(cube),cs)
242242
interpret_cubechunks(cs::DiskArrays.GridChunks,_) = cs
243243
interpret_dimchunk(cs::Integer,s) = DiskArrays.RegularChunks(cs,0,s)
244-
interpret_dimchunk(cs::DiskArrays.ChunkType, _) = cs
244+
interpret_dimchunk(cs::DiskArrays.ChunkVector, _) = cs
245245

246246
function interpret_cubechunks(cs,cube)
247247
oldchunks = DiskArrays.eachchunk(cube).chunks

src/DAT/DAT.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import YAXArrayBase
2727
import ProgressMeter: Progress, next!, progress_pmap, progress_map
2828
using YAXArrayBase
2929
using DiskArrays: grid_offset, approx_chunksize, max_chunksize, RegularChunks,
30-
IrregularChunks, GridChunks, eachchunk, ChunkType
30+
IrregularChunks, GridChunks, eachchunk, ChunkVector
3131
using OffsetArrays: OffsetArray
3232
using Dates
3333
using DimensionalData: DimensionalData as DD
@@ -515,12 +515,12 @@ function makeinplace(f)
515515
end
516516

517517
function 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)
524524
end
525525
function 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

Comments
 (0)