From c807772c7bfe0209dd9db7d9d6d222a938385373 Mon Sep 17 00:00:00 2001 From: lupemba Date: Thu, 10 Oct 2024 09:39:51 +0200 Subject: [PATCH 1/2] pin eccodes_jll=2.28 to make variable names stable --- Project.toml | 4 +++- test/dataset.jl | 4 ++-- test/dimensions.jl | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 3174d3f..0ac9ca9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GRIBDatasets" uuid = "82be9cdb-ee19-4151-bdb3-b400788d9abc" authors = ["tcarion and contributors"] -version = "0.3.2" +version = "0.3.3" [deps] CommonDataModel = "1fbeeb36-5f17-413c-809b-666fb144f157" @@ -9,11 +9,13 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" DiskArrays = "3c3547ce-8d99-4f5e-a174-61eb10b00ae3" GRIB = "b16dfd50-4035-11e9-28d4-9dfe17e6779b" +eccodes_jll = "b04048ba-5ccd-5610-b3f6-85129a548705" [compat] CommonDataModel = "0.3.4" DataStructures = "0.18" DiskArrays = "0.3, 0.4" +eccodes_jll = "2.28" GRIB = "0.3, 0.4" julia = "1" diff --git a/test/dataset.jl b/test/dataset.jl index dab7af6..76633a4 100644 --- a/test/dataset.jl +++ b/test/dataset.jl @@ -122,9 +122,9 @@ using GRIBDatasets: CDM u = ds2["u"] @test u[:,:, 1, 1] isa AbstractArray{<:Any, 2} @test_throws BoundsError u[:,:,1,2] - u10 = ds2["avg_10u"] + u10 = ds2["u10"] @test GDS._dim_values(GDS._get_dim(u10, "heightAboveGround_2")) == [10] - t2m = ds2["mean2t"] + t2m = ds2["t2m"] @test GDS._dim_values(GDS._get_dim(t2m, "heightAboveGround")) == [2] end diff --git a/test/dimensions.jl b/test/dimensions.jl index 1a75534..884f63e 100644 --- a/test/dimensions.jl +++ b/test/dimensions.jl @@ -79,7 +79,7 @@ using Test @test keys(vertdims) == ["hybrid", "heightAboveGround", "heightAboveGround_2"] - u10 = filter_messages(index, cfVarName = "avg_10u") + u10 = filter_messages(index, cfVarName = "u10") indices = messages_indices(u10, _alldims(u10)) @test indices[1] == [1, 1] From 77dc6129072006f41e7fd853c3f62391f879c788 Mon Sep 17 00:00:00 2001 From: Simon Kok Lupemba <30597266+lupemba@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:08:23 +0200 Subject: [PATCH 2/2] fix typo in pin eccodes_jl --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0ac9ca9..069ba25 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ eccodes_jll = "b04048ba-5ccd-5610-b3f6-85129a548705" CommonDataModel = "0.3.4" DataStructures = "0.18" DiskArrays = "0.3, 0.4" -eccodes_jll = "2.28" +eccodes_jll = "~2.28" GRIB = "0.3, 0.4" julia = "1"