Skip to content

Commit d267873

Browse files
authored
Merge pull request #36 from tcarion/issue35
fix issue with eccodes_jll v2.36
2 parents 4f13871 + 14b4d36 commit d267873

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/variables.jl

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ function Variable(ds::GRIBDataset, key)
157157

158158
for d in dims
159159
if !_is_length_consistent(d, dsdims)
160-
@warn "The length of dimension $(dimname(d)) in variable $key is different
161-
from the corresponding dimension in the dataset. This could lead to unexpected
162-
behaviour."
160+
@warn "The length of dimension $(dimname(d)) in variable $key is different from the corresponding dimension in the dataset. This could lead to unexpected behaviour."
163161
end
164162
end
165163

@@ -171,7 +169,7 @@ function Variable(ds::GRIBDataset, key)
171169

172170
Variable(ds, key, _filter_horizontal_dims(ds.dims), values, coordinate_attributes(key))
173171
else
174-
error("The key `$key` was been found in the dataset. Available keys: $(keys(ds))")
172+
error("The key `$key` was not found in the dataset. Available keys: $(keys(ds))")
175173
end
176174
end
177175

test/dataset.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ using GRIBDatasets: CDM
122122
u = ds2["u"]
123123
@test u[:,:, 1, 1] isa AbstractArray{<:Any, 2}
124124
@test_throws BoundsError u[:,:,1,2]
125-
u10 = ds2["u10"]
125+
u10 = ds2["avg_10u"]
126126
@test GDS._dim_values(GDS._get_dim(u10, "heightAboveGround_2")) == [10]
127-
t2m = ds2["t2m"]
127+
t2m = ds2["mean2t"]
128128
@test GDS._dim_values(GDS._get_dim(t2m, "heightAboveGround")) == [2]
129129
end
130130

@@ -187,7 +187,7 @@ using GRIBDatasets: CDM
187187
end
188188
end
189189

190-
@testset "test all files" begin
190+
@testset "open all files" begin
191191
for testfile in test_files
192192
println("Testing: ", testfile)
193193
index = FileIndex(testfile)

test/dimensions.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ using Test
7979

8080
@test keys(vertdims) == ["hybrid", "heightAboveGround", "heightAboveGround_2"]
8181

82-
u10 = filter_messages(index, cfVarName = "u10")
82+
u10 = filter_messages(index, cfVarName = "avg_10u")
8383
indices = messages_indices(u10, _alldims(u10))
8484

8585
@test indices[1] == [1, 1]
8686
end
87-
end
87+
end

0 commit comments

Comments
 (0)