Skip to content

Commit bf46bab

Browse files
committed
small fixes
1 parent 19453ba commit bf46bab

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/variables.jl

-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ Base.getindex(var::Variable{T,N,Array{T,N}}, I...) where {T,N} =
131131
getindex(parent(var), I...)
132132

133133
function DA.readblock!(A::Variable, aout, i::AbstractUnitRange...)
134-
@show i
135134
DA.readblock!(parent(A), aout, i...)
136135
end
137136
DA.eachchunk(A::Variable) = DA.eachchunk(parent(A))

test/dataset.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,9 @@ end
199199

200200
end
201201

202-
# @testset "diskarrays" begin
202+
@testset "diskarrays" begin
203203
# No scalar indexing allowed
204204
DiskArrays.allow_scalar(false)
205-
grib_path = joinpath(dir_testfiles, "era5-levels-members.grib")
206205
ds = GRIBDataset(grib_path)
207206
# CFVariable is not a disk array, so will be super slow here.
208207
# But the underlying variable is
@@ -213,7 +212,7 @@ end
213212
# Broadcasts are lazy
214213
B = var .* 10
215214
@test B isa DiskArrays.BroadcastDiskArray
216-
@test b[1:50, 1:50, 1, 1, 1] isa Matrix
215+
@test B[1:50, 1:50, 1, 1, 1] isa Matrix
217216
# Reduction is chunked
218217
@test sum(var) * 10 == sum(B)
219218
end

0 commit comments

Comments
 (0)