Skip to content

Commit d330591

Browse files
authored
Fix bug in testtypes (#230)
* Fix bug in testtypes * fix inaccuracy in merge_chunks
1 parent efcd9bb commit d330591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function merge_chunks(csnow, n)
108108
# Update positions in each list of chunks
109109
chpos = newchpos .+ 1
110110
# If this is the last chunk, break
111-
chpos[1] >= length(firstcs) && break
111+
chpos[1] > length(firstcs) && break
112112
# Add our new offset
113113
push!(chunk_offsets, newchunkoffset)
114114
end

src/util/testtypes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Base.size(a::AccessCountDiskArray) = size(a.parent)
2929

3030
# Apply the all in one macro rather than inheriting
3131

32-
DiskArrays.haschunks(::AccessCountDiskArray) = DiskArrays.Chunked()
32+
DiskArrays.haschunks(a::AccessCountDiskArray) = DiskArrays.Chunked(a.batchstrategy)
3333
DiskArrays.eachchunk(a::AccessCountDiskArray) = DiskArrays.GridChunks(a, a.chunksize)
3434
function DiskArrays.readblock!(a::AccessCountDiskArray, aout, i::OrdinalRange...)
3535
ndims(a) == length(i) || error("Number of indices is not correct")

0 commit comments

Comments
 (0)